Simple, typed dependency injection framework for Python.
Features:
- Simple async-first DI framework with IOC-container.
- Python 3.11+ support.
- Full coverage by types annotations (mypy in strict mode, pyrefly).
- Built-in FastAPI, FastStream and Litestar integrations.
- Dependency context management with scopes.
- Overriding dependencies for tests.
- Injecting dependencies in functions and coroutines without wiring.
Installation
pip install that-depends
Ecosystem
that-depends is part of the modern-python family.
If you're starting a new project, consider modern-di,
the newer DI framework from the same author, with separate framework adapters:
modern-di: core DI framework with scopesmodern-di-fastapi,modern-di-litestar,modern-di-faststream,modern-di-typer,modern-di-pytest
that-depends remains actively maintained. See the
migration guide if you
want to move existing projects across.
Links
Part of modern-python
The modern-python org profile has the full categorized list of templates and libraries.
Metadata
Release files for that-depends 4.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 |
|---|---|---|---|---|
| that_depends-4.3.0.tar.gz | 36.1 kB | Without provenance | Details for that_depends-4.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| that_depends-4.3.0-py3-none-any.whl | Python 3 | none | any | Details for that_depends-4.3.0-py3-none-any.whl |
Total release size: 83.0 kB
Release files / that_depends-4.3.0.tar.gz
| Download URL | that_depends-4.3.0.tar.gz |
|---|---|
| Size | 36.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
708785c8804938f20fca00071984b9b6451d9609d45b09eb8d056802254029f0
|
|
BLAKE2b-256 checksum How to use checksums |
f2fbdcc94a03c5d2b83fcd96009579fdd1e527db2ec76435d20267c489d1aa8e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / that_depends-4.3.0-py3-none-any.whl
| Download URL | that_depends-4.3.0-py3-none-any.whl |
|---|---|
| Size | 46.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7fe90c68631fc86d97ffa357dbc852e34fff1263dfe3ced92aff3aec683d7203
|
|
BLAKE2b-256 checksum How to use checksums |
627a5cf15236da08b6bd84810267002d6530f88f1c365fb327ec8939c84efde3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for that-depends 4.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.