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 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 run(twistOptions): (source)

Run the application service.

ParameterstwistOptionsCommand line options to convert to runner arguments. (type: TwistOptions)
@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 2018-07-14 04:53:34.