Support delayed dependency injection in FastApi to enable app constructor pattern.
Project description
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
Project details
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 dependency_container-0.3.0.tar.gz.
File metadata
- Download URL: dependency_container-0.3.0.tar.gz
- Upload date:
- Size: 69.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
37f2bcdd8b6363891063c0408b51155b34a46a17235a61d32a6b6a3384745d57
|
|
| MD5 |
6d0f98c65c4421f601ae82b1c64b4fec
|
|
| BLAKE2b-256 |
8188ad13b833a29cf0792db34b5414dea09e52655d7fafeef40f05977b683e25
|
Provenance
The following attestation bundles were made for dependency_container-0.3.0.tar.gz:
Publisher:
release.yml on KLMatlock/dependency-container
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dependency_container-0.3.0.tar.gz -
Subject digest:
37f2bcdd8b6363891063c0408b51155b34a46a17235a61d32a6b6a3384745d57 - Sigstore transparency entry: 152300041
- Sigstore integration time:
-
Permalink:
KLMatlock/dependency-container@fd8bb39860433c88bb3309257aee33a9f757d5c7 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/KLMatlock
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@fd8bb39860433c88bb3309257aee33a9f757d5c7 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file dependency_container-0.3.0-py3-none-any.whl.
File metadata
- Download URL: dependency_container-0.3.0-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6aba2a04242e6c06d56f0314c6cdf269ea2cf4a242b3fcc2f84e37b8438a0b6
|
|
| MD5 |
249e0b0362532677173c2d5463e27102
|
|
| BLAKE2b-256 |
786766772f1d4113a43160a25de628b5a9ca3c4d701d33d8f330addbc8e2ca3a
|
Provenance
The following attestation bundles were made for dependency_container-0.3.0-py3-none-any.whl:
Publisher:
release.yml on KLMatlock/dependency-container
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dependency_container-0.3.0-py3-none-any.whl -
Subject digest:
d6aba2a04242e6c06d56f0314c6cdf269ea2cf4a242b3fcc2f84e37b8438a0b6 - Sigstore transparency entry: 152300052
- Sigstore integration time:
-
Permalink:
KLMatlock/dependency-container@fd8bb39860433c88bb3309257aee33a9f757d5c7 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/KLMatlock
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@fd8bb39860433c88bb3309257aee33a9f757d5c7 -
Trigger Event:
workflow_dispatch
-
Statement type: