twisted.application.app module documentationtwisted.application
          View Source
          
        
      | Class | ProfileRunner | Runner for the standard profile module. | 
| Class | CProfileRunner | Runner for the cProfile module. | 
| Class | AppProfiler | Class which selects a specific profile runner based on configuration options. | 
| Class | AppLogger | An AppLogger attaches the configured log observer specified on the commandline to a ServerOptions object, a custom logger.ILogObserver, or a legacy custom {log.ILogObserver}. | 
  
| Function | fixPdb | Undocumented | 
| Function | runReactorWithLogging | Start the reactor, using profiling if specified by the configuration, and log any error happening in the process. | 
| Function | getPassphrase | Undocumented | 
| Function | getSavePassphrase | Undocumented | 
| Class | ApplicationRunner | An object which helps running an application based on a config object. | 
| Function | getApplication | Undocumented | 
| Class | ReactorSelectionMixin | Provides options for selecting a reactor to install. | 
| Class | ServerOptions | No class docstring; 0/6 class variables, 0/2 instance variables, 2/5 methods documented | 
| Function | run | Undocumented | 
| Function | convertStyle | Undocumented | 
| Function | startApplication | Undocumented | 
| Class | _BasicProfiler | |
| Function | _reactorAction | Undocumented | 
| Function | _exitWithSignal | Force the application to terminate with the specified signal by replacing the signal handler with the default and sending the signal to ourselves. | 
Start the reactor, using profiling if specified by the configuration, and log any error happening in the process.
| Parameters | config | configuration of the twistd application. (type: ServerOptions) | 
| oldstdout | initial value of sys.stdout. (type: file) | |
| oldstderr | initial value of sys.stderr. (type: file) | |
| profiler | object used to run the reactor with profiling. (type: AppProfiler) | |
| reactor | The reactor to use.  If None, the global reactor will be used. | 
Force the application to terminate with the specified signal by replacing the signal handler with the default and sending the signal to ourselves.
| Parameters | sig | Signal to use to terminate the process with os.kill. (type: int) |