betty.life_cycle package¶
Submodules¶
Module contents¶
Life cycle and resource management.
- exception betty.life_cycle.AlreadyBootstrapped¶
Bases:
LifeCycleErrorRaised if a life cycle was unexpectedly already bootstrapped.
- exception betty.life_cycle.AlreadyShutDown¶
Bases:
AlreadyBootstrappedRaised if a life cycle was unexpectedly already shut down.
- class betty.life_cycle.Bootstrappable¶
Bases:
_LifeCycleContextManagerAn object that can be bootstrapped.
- class betty.life_cycle.LifeCycle¶
Bases:
Bootstrappable,ShutdownableAn object that can be bootstrapped and shut down.
- exception betty.life_cycle.LifeCycleError¶
Bases:
RuntimeErrorRaised for life cycle related errors.
- exception betty.life_cycle.NotYetBootstrapped¶
Bases:
LifeCycleErrorRaised if a life cycle was unexpectedly not yet bootstrapped.
- class betty.life_cycle.Shutdownable¶
Bases:
_LifeCycleContextManagerAn object that can be shut down.