Scroll to navigation

MKTAP(1) MKTAP(1)

NAME

mktap - create twisted.servers

SYNOPSIS

mktap [options] apptype [application_option]...

mktap apptype --help

DESCRIPTION

The --help prints out a usage message to standard output.

Show debug information for plugin loading.
Show progress information for plugin loading.
Encrypt file before writing (will make the extension of the resultant file begin with 'e').
Application belongs to this uid, and should run with its permissions.
Application belongs to this gid, and should run with its permissions.
Append given servers to given file, instead of creating a new one. File should be be a tap file.
Use the specified name as the process name when the application is run with twistd(1). This option also causes some initialization code to be duplicated when twistd(1) is run.
Specify the output file type. Available types are:
pickle - (default) Output as a python pickle file.
xml - Output as a .tax XML file.
source - Output as a .tas (AOT Python source) file.

apptype Can be 'web', 'portforward', 'toc', 'coil', 'words', 'manhole', 'im', 'news', 'socks', 'telnet', 'parent', 'sibling', 'ftp', and 'mail'. Each of those support different options.

portforward options

Proxy connections to <host>
Proxy connections to <port> on remote host.
Listen locally on <port>

web options

Makes a server with ~/public_html and ~/.twistd-web-pb support for users.
Instead of generating a webserver, generate a ResourcePublisher which listens on ~/.twistd-web-pb
<path> is either a specific file or a directory to be set as the root of the web server. Use this if you have a directory full of HTML, cgi, php3, epy, or rpy files or any other files that you want to be served up raw.
<port> is a number representing which port you want to start the server on.
<mimetype> is the default MIME type to use for files in a --path web server when none can be determined for a particular extension. The default is 'text/html'.
Specify whether or not a request for 'foo' should return 'foo.ext'. Default is off.
Specify that a request for 'foo' should return 'foo.<extension>'.
Run a telnet server on <port>, for additional configuration later.
Use an index name other than "index.html"
Port to listen on for Secure HTTP.
SSL certificate to use for HTTPS. [default: server.pem]
SSL certificate to use for HTTPS. [default: server.pem]
Adds a processor to those file names. (Only usable if after --path)
Sets the root as a resource script. This script will be re-evaluated on every request.

This creates a web.tap file that can be used by twistd. If you specify no arguments, it will be a demo webserver that has the Test class from twisted.web.test in it.

toc options

<port> is a number representing which port you want to start the server on.

mail options

Relay mail to all unknown domains through given IP and port, using queue directory as temporary place to place files.
generate an SMTP/POP3 virtual maildir domain named "domain" which saves to "path"
add a user/password to the last specified domains
undelivered mails are sent to the postmaster, instead of being rejected.
<port> is a number representing which port you want to start the pop3 server on.
<port> is a number representing which port you want to start the smtp server on.

This creates a mail.tap file that can be used by twistd(1)

telnet options

Run the telnet server on <port>
set the username to <name>
set the password to <password>

socks options

Listen on interface <interface>
Run the SOCKSv4 server on <port>
log connection data to <filename>

ftp options

Allow anonymous logins
-3, --thirdparty
Allow third party connections
Use one time passwords (OTP)
Run the FTP server on <port>
Define the local root of the FTP server
Define the the name of the anonymous user

manhole options

Run the manhole server on <port>
set the username to <name>
set the password to <password>

words options

Run the Words server on <port>
Run IRC server on port <port>
Run web server on port <port>

AUTHOR

Written by Moshe Zadka, based on mktap's help messages

REPORTING BUGS

To report a bug, visit http://twistedmatrix.com/bugs/

COPYRIGHT

Copyright © 2000-2008 Twisted Matrix Laboratories.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

SEE ALSO

twistd(1)

July 2001