This release is a pre-release and may not be stable for production use.
ashka
ashka extends reagento/dishka with application lifecycle support.
Current Features
- Pass
BOOTSTRAPto thescopeparameter ofashka.provide, for example@ashka.provide(scope=ashka.BOOTSTRAP), to register a dependency in the RUNTIME scope and create it when the container is initialized. Both synchronous and asynchronous containers can be initialized explicitly withcontainer.init()or automatically by entering the container context manager. - Each ashka integration provides a consistent
get_containerfunction. It retrieves the container passed tosetup_dishkafrom the integrated framework application, router, broker, context, or other supported object. - The central
ashka.integrations.setup_dishkaandashka.integrations.get_containerfunctions automatically dispatch to the corresponding integration based on the type of the object passed to them. - Integrations are available for Aiogram, Aiohttp, ARQ, Celery, Click, FastAPI, Flask, Litestar, Sanic, Starlette, Taskiq, and Telebot. FastStream is available as a manual opt-in integration.
Patched Implementations
dishka.**.make_container->ashka.**.make_containerdishka.**.make_async_container->ashka.**.make_async_containerdishka.integrations.*.setup_dishka->ashka.integrations.*.setup_dishka
See FastStream support for its support status and manual opt-in.
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-0.7.0b9.tar.gz.
File metadata
- Download URL: ashka-0.7.0b9.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65bc1c615caef66544a3d53e0a11ae8bfb98e9349d7ece4896ec7fdb16eeb545
|
|
| MD5 |
7a4889ca5f89d8cfc203bff0a091c141
|
|
| BLAKE2b-256 |
4b4257d51433efb43e1000e011aef5f52f9cc50e07cdf88802e72840e33d78a9
|
Provenance
The following attestation bundles were made for ashka-0.7.0b9.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-0.7.0b9.tar.gz -
Subject digest:
65bc1c615caef66544a3d53e0a11ae8bfb98e9349d7ece4896ec7fdb16eeb545 - Sigstore transparency entry: 2569612287
- Sigstore integration time:
-
Permalink:
handsome-Druid/ashka@8dc222e5302f7c707fd7eb6dac6a1745e62e56ac -
Branch / Tag:
refs/tags/v0.7.0b9 - Owner: https://github.com/handsome-Druid
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@8dc222e5302f7c707fd7eb6dac6a1745e62e56ac -
Trigger Event:
push
-
Statement type:
File details
Details for the file ashka-0.7.0b9-py3-none-any.whl.
File metadata
- Download URL: ashka-0.7.0b9-py3-none-any.whl
- Upload date:
- Size: 23.3 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 |
8af01dda9980b1bfe713daa28f21d23924a0691309780de1271ad99a545a1ff9
|
|
| MD5 |
7c39a1f560b9bb9bf4a7245c0bbe6f72
|
|
| BLAKE2b-256 |
a0b46c78476cae284b335c5cfe455eff8325f11b2c749922e32dc2e7f3bae872
|
Provenance
The following attestation bundles were made for ashka-0.7.0b9-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-0.7.0b9-py3-none-any.whl -
Subject digest:
8af01dda9980b1bfe713daa28f21d23924a0691309780de1271ad99a545a1ff9 - Sigstore transparency entry: 2569612289
- Sigstore integration time:
-
Permalink:
handsome-Druid/ashka@8dc222e5302f7c707fd7eb6dac6a1745e62e56ac -
Branch / Tag:
refs/tags/v0.7.0b9 - Owner: https://github.com/handsome-Druid
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@8dc222e5302f7c707fd7eb6dac6a1745e62e56ac -
Trigger Event:
push
-
Statement type: