Run a Twisted application.

Static Method options Parse command line options.
Static Method service Create the application service.
Static Method startService Start the application service.
Static Method runnerOptions Take options obtained from command line and configure options for the application runner.
Static Method run Run the application service.
Class Method main Executable entry point for Twist. Processes options and run a twisted reactor with a service.
@staticmethod
def options(argv): (source)

Parse command line options.

ParametersargvCommand line arguments. (type: list)
ReturnsThe parsed options. (type: TwistOptions)
@staticmethod
def service(plugin, options): (source)

Create the application service.

ParameterspluginThe name of the plugin that implements the service application to run. (type: str)
optionsOptions to pass to the application. (type: twisted.python.usage.Options)
ReturnsThe created application service. (type: IService)
@staticmethod
def startService(reactor, service): (source)

Start the application service.

ParametersreactorThe reactor to run the service with. (type: twisted.internet.interfaces.IReactorCore)
serviceThe application service to run. (type: IService)
@staticmethod
def runnerOptions(twistOptions): (source)

Take options obtained from command line and configure options for the application runner.

ParameterstwistOptionsCommand line options to convert to runner options. (type: TwistOptions)
ReturnsThe corresponding runner options. (type: RunnerOptions)
@staticmethod
def run(runnerOptions): (source)

Run the application service.

ParametersrunnerOptionsOptions to pass to the runner. (type: RunnerOptions)
@classmethod
def main(cls, argv=sys.argv): (source)

Executable entry point for Twist. Processes options and run a twisted reactor with a service.

ParametersargvCommand line arguments. (type: list)
API Documentation for Twisted, generated by pydoctor at 2016-10-29 16:19:29.