Delayed Dependency Injection in Python
Dependency Container is a Python library that enables a delayed dependency injection approach, allowing you to build your application using an app constructor pattern. It's particularly useful for scenarios where dependencies are defined later in the application lifecycle.
Currently supports FastAPI and FastStream.
Installation
For installation we suggest using uv:
uv add dependency-container
If you wish to use with FastStream:
uv add "dependency-container[faststream]"
Alternatively you can install with pip:
pip install dependency-container
Metadata
Release files for dependency-container 0.3.0
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 |
|---|---|---|---|---|
| dependency_container-0.3.0.tar.gz | 69.7 kB | With provenance | Details for dependency_container-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dependency_container-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for dependency_container-0.3.0-py3-none-any.whl |
Total release size: 79.0 kB
Release files / dependency_container-0.3.0.tar.gz
| Download URL | dependency_container-0.3.0.tar.gz |
|---|---|
| Size | 69.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
37f2bcdd8b6363891063c0408b51155b34a46a17235a61d32a6b6a3384745d57
|
|
BLAKE2b-256 checksum How to use checksums |
8188ad13b833a29cf0792db34b5414dea09e52655d7fafeef40f05977b683e25
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
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 Nov 28, 2024.
Transparency logRelease files / dependency_container-0.3.0-py3-none-any.whl
| Download URL | dependency_container-0.3.0-py3-none-any.whl |
|---|---|
| Size | 9.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d6aba2a04242e6c06d56f0314c6cdf269ea2cf4a242b3fcc2f84e37b8438a0b6
|
|
BLAKE2b-256 checksum How to use checksums |
786766772f1d4113a43160a25de628b5a9ca3c4d701d33d8f330addbc8e2ca3a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
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 Nov 28, 2024.
Transparency logSecurity for dependency-container 0.3.0
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 dependency_container-0.3.0.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 Nov 28, 2024.
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.