Hide navigation sidebar
Hide table of contents sidebar
Skip to content
Back to top
View this page
Toggle table of contents sidebar

# betty.core module

Provide tools to build core application components.

class betty.core.CoreComponent

  Bases: `ABC`

  A core component.

  Core components can manage their resources by being bootstrapped and shut down.

  This is internal. It MAY be used anywhere in Betty’s source code, but MUST NOT be used by third-party code.

  __init__(*args: Any, **kwargs: Any)
  async bootstrap() → None

    Bootstrap the component.

  async shutdown() → None

    Shut the component down.