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:
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ashka_lifecycle-0.3.1.tar.gz.
File metadata
- Download URL: ashka_lifecycle-0.3.1.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
842c3bd620fe7176d776911541e09b2471869a3efc9fc522ab74c860b70dac45
|
|
| MD5 |
4e1d86963395ab10dc2c47f2b1d33e19
|
|
| BLAKE2b-256 |
e3f11a32e200dbd8122b38337f4975f9c62593d5d548704f7e18d16ab8ddd811
|
Provenance
The following attestation bundles were made for ashka_lifecycle-0.3.1.tar.gz:
Publisher:
publish.yml on handsome-Druid/ashka
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ashka_lifecycle-0.3.1.tar.gz -
Subject digest:
842c3bd620fe7176d776911541e09b2471869a3efc9fc522ab74c860b70dac45 - Sigstore transparency entry: 2634689723
- Sigstore integration time:
-
Permalink:
handsome-Druid/ashka@97635f19a1e10cf96e4d7b7df0cba5d2d94f6302 -
Branch / Tag:
refs/tags/lifecycle-v0.3.1 - Owner: https://github.com/handsome-Druid
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@97635f19a1e10cf96e4d7b7df0cba5d2d94f6302 -
Trigger Event:
push
-
Statement type:
File details
Details for the file ashka_lifecycle-0.3.1-py3-none-any.whl.
File metadata
- Download URL: ashka_lifecycle-0.3.1-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96379e3ca3eecde7820bcd6d1d0d6e8f361c7538762358e35aff42b56468efe2
|
|
| MD5 |
21a9c7d153a4004e720b4664ef6d08ba
|
|
| BLAKE2b-256 |
9ca609cc2b97315a92be8d87ff68e590c79f81e84e7f1d9966886c71f6ea7dbd
|
Provenance
The following attestation bundles were made for ashka_lifecycle-0.3.1-py3-none-any.whl:
Publisher:
publish.yml on handsome-Druid/ashka
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ashka_lifecycle-0.3.1-py3-none-any.whl -
Subject digest:
96379e3ca3eecde7820bcd6d1d0d6e8f361c7538762358e35aff42b56468efe2 - Sigstore transparency entry: 2634689775
- Sigstore integration time:
-
Permalink:
handsome-Druid/ashka@97635f19a1e10cf96e4d7b7df0cba5d2d94f6302 -
Branch / Tag:
refs/tags/lifecycle-v0.3.1 - Owner: https://github.com/handsome-Druid
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@97635f19a1e10cf96e4d7b7df0cba5d2d94f6302 -
Trigger Event:
push
-
Statement type: