thriftpool Package

thriftpool Package

Container for thrift services.

class thriftpool.__init__.BaseHandler

Bases: thriftpool.base.NewBase

Base class for handler.

meta = {'abstract': True, 'enabled': True}
class options
abstract = True
thriftpool.__init__.as_default_cls(cls)

base Module

Implement base class for handlers. This can be used to simply inherit from this class instead of directly registering new handler.

class thriftpool.base.BaseHandler[source]

Bases: thriftpool.base.NewBase

Base class for handler.

meta = {'abstract': True, 'enabled': True}
class options[source]
abstract = True

exceptions Module

exception thriftpool.exceptions.SystemTerminate[source]

Bases: exceptions.SystemExit

Throw to terminate program.

exception thriftpool.exceptions.RegistrationError[source]

Bases: exceptions.Exception

Error happened on handler registration.

signals Module

Specify signals sent when specific events happens.

thriftpool.signals.after_app_start = <Signal: Signal>

Called after application start.

thriftpool.signals.after_logging_setup = <Signal: Signal>

Called after loggers are configured.

thriftpool.signals.app_shutdown = <Signal: Signal>

Called after application stopped.

thriftpool.signals.app_start = <Signal: Signal>

Called on application start.

thriftpool.signals.collect_excluded_fds = <Signal: Signal>

Collect file descriptors that must not be closed.

thriftpool.signals.handler_method_guarded = <Signal: Signal>

Called before handler will be guarded. Handler may return decorator.

thriftpool.signals.listener_started = <Signal: Signal>

Listener was started.

thriftpool.signals.listener_stopped = <Signal: Signal>

Listener was stopped.

thriftpool.signals.listeners_started = <Signal: Signal>

All listener was started.

thriftpool.signals.listeners_stopped = <Signal: Signal>

All listeners stopped.

thriftpool.signals.setup_logging = <Signal: Signal>

Called before loggers are configured.

Project Versions

Table Of Contents

Previous topic

API Documentation

Next topic

app Package

This Page