Skip to main content

ashka-lifecycle

CI Update dishka

ashka-lifecycle adds an application bootstrap phase to dishka containers. Dependencies registered with AshkaScope.BOOTSTRAP are created eagerly when the root container is initialized, while retaining the dependency, caching, and shutdown behavior of dishka's Scope.APP. Both synchronous and asynchronous containers support explicit initialization and initialization through their context managers.

The implementation is designed to keep the integration with dishka minimally intrusive. ashka-lifecycle extends the public provider and container construction APIs, while leaving dishka's scope and factory implementations unchanged. The AshkaScope.BOOTSTRAP value is only an ashka-side marker; the provider maps it to dishka's native Scope.APP instead of introducing a new dishka scope.

ashka-lifecycle maintains its own registry of Bootstrap provider sources and the corresponding dependency keys for each container. When a container is entered, ashka-lifecycle looks up the registered keys and eagerly resolves them using the existing container API. Synchronous containers resolve them one by one, while asynchronous containers resolve them concurrently. This keeps the changes localized to the public extension points and leaves dishka's existing scope, caching, shutdown, and factory behavior in control.

ashka-lifecycle can also be installed and used independently from ashka as an escape hatch. In this mode, manually import ashka_lifecycle and manually call ashka_lifecycle.activate_lifecycle() before importing dishka to ensure that its patches are applied.

See more details and about how to use:

English 中文

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ashka_lifecycle-0.1.4.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ashka_lifecycle-0.1.4-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file ashka_lifecycle-0.1.4.tar.gz.

File metadata

  • Download URL: ashka_lifecycle-0.1.4.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for ashka_lifecycle-0.1.4.tar.gz
Algorithm Hash digest
SHA256 dc258fd41fe636f1ec78a6d992c59b8e7a1874b6c49c48dbfe4fc29978dae3ab
MD5 5f975341b7c2e3ba40b91b55aa07c3d1
BLAKE2b-256 aa2ace8053ebc4348b15ec9777e171f9f46cbdd0214c0b23fb000fc2a13184d4

See more details on using hashes here.

Provenance

The following attestation bundles were made for ashka_lifecycle-0.1.4.tar.gz:

Publisher: publish.yml on handsome-Druid/ashka

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ashka_lifecycle-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for ashka_lifecycle-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 442148dec952720fe0e37f4008aa4f6c5865b8b8479cda0950de01fcbbdfd506
MD5 4c30645e37d7a0247c48999e6fc4903c
BLAKE2b-256 6285c46974d47ae8ff30b0758f5f4ca68dc823f6eeea6bd7d6ff36aaea71afb7

See more details on using hashes here.

Provenance

The following attestation bundles were made for ashka_lifecycle-0.1.4-py3-none-any.whl:

Publisher: publish.yml on handsome-Druid/ashka

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.3.1

2 files

0.3.0

2 files

0.2.3

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.10

2 files

0.1.9

2 files

0.1.8

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

This release

0.1.4 This release

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page