ashka-lifecycle
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:
Metadata
Release files for ashka-lifecycle 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ashka_lifecycle-1.0.1.tar.gz | 5.0 kB | With provenance | Details for ashka_lifecycle-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ashka_lifecycle-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for ashka_lifecycle-1.0.1-py3-none-any.whl |
Total release size: 12.4 kB
Release files / ashka_lifecycle-1.0.1.tar.gz
| Download URL | ashka_lifecycle-1.0.1.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b3e9f423379799b13caee6545b892676576a64e62234bf85486431956309d47c
|
|
BLAKE2b-256 checksum How to use checksums |
c21d8f3b80d5e01d4805d6816e06f4ff975bc8e90b741456fcf33fa5c609471c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.
Transparency logRelease files / ashka_lifecycle-1.0.1-py3-none-any.whl
| Download URL | ashka_lifecycle-1.0.1-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
45cac3106e59d7f9791fb49cd0e83ec0a6de6ebc2adb689fa0159098b1d212b1
|
|
BLAKE2b-256 checksum How to use checksums |
3b5efc838e4d57fae5a18984d57409ceea0166ce2ddff0071f835fa480b02791
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.
Transparency logSecurity for ashka-lifecycle 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for ashka_lifecycle-1.0.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.