class documentation

class twisted.application.twist._twist.Twist: (source)

View In Hierarchy

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: Sequence[str])
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: IServiceMaker)
optionsOptions to pass to the application. (type: 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: 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 20.12.1 at 2021-02-28 19:53:36.