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 runnerArguments Take options obtained from command line and configure arguments to pass to 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 runnerArguments(twistOptions): (source)

Take options obtained from command line and configure arguments to pass to the application runner.

ParameterstwistOptionsCommand line options to convert to runner arguments. (type: TwistOptions)
ReturnsThe corresponding runner arguments. (type: dict)
@staticmethod
def run(runnerArguments): (source)

Run the application service.

ParametersrunnerArgumentsArguments to pass to the runner. (type: dict)
@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 2017-06-11 10:59:01.