https://github.com/modern-python/that-depends
Simple Dependency injection framework for Python
https://github.com/modern-python/that-depends
dependency-injection di ioc ioc-container mocks python
Last synced: 7 days ago
JSON representation
Simple Dependency injection framework for Python
- Host: GitHub
- URL: https://github.com/modern-python/that-depends
- Owner: modern-python
- License: mit
- Created: 2024-03-17T17:25:28.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-30T12:19:57.000Z (15 days ago)
- Last Synced: 2025-03-31T22:14:16.875Z (14 days ago)
- Topics: dependency-injection, di, ioc, ioc-container, mocks, python
- Language: Python
- Homepage: https://that-depends.readthedocs.io/
- Size: 674 KB
- Stars: 200
- Watchers: 5
- Forks: 14
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-dependency-injection-in-python - That Depends - simple DI-framework, inspired by python-dependency-injector, but without wiring [🐍, MIT License]. (Software / DI Frameworks / Containers)
README
"That Depends"
==
[](https://codecov.io/gh/modern-python/that-depends)
[](https://mypy.readthedocs.io/en/stable/getting_started.html#strict-mode-and-configuration)
[](https://pypi.python.org/pypi/that-depends)
[](https://pypistats.org/packages/that-depends)
[](https://github.com/modern-python/that-depends/stargazers)
[](https://libs.tech/project/773446541/that-depends)Dependency injection framework for Python.
It is production-ready and gives you the following:
- Simple async-first DI framework with IOC-container.
- Python 3.10+ support.
- Full coverage by types annotations (mypy in strict mode).
- Inbuilt FastAPI, FastStream and LiteStar compatibility.
- Dependency context management with scopes.
- Overriding dependencies for tests.
- Injecting dependencies in functions and coroutines without wiring.
- Package with zero dependencies.### Installation
```bash
pip install that-depends
```## 📚 [Documentation](https://that-depends.readthedocs.io)
## 📦 [PyPi](https://pypi.org/project/that-depends)
## 📝 [License](LICENSE)