https://github.com/modern-python/modern-di
Powerful DI-framework with scopes
https://github.com/modern-python/modern-di
dependency-injection di ioc ioc-container mocks python scopes
Last synced: 1 day ago
JSON representation
Powerful DI-framework with scopes
- Host: GitHub
- URL: https://github.com/modern-python/modern-di
- Owner: modern-python
- License: mit
- Created: 2024-10-27T18:08:41.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2026-01-10T11:18:39.000Z (7 days ago)
- Last Synced: 2026-01-11T03:35:30.317Z (7 days ago)
- Topics: dependency-injection, di, ioc, ioc-container, mocks, python, scopes
- Language: Python
- Homepage: https://modern-di.readthedocs.io/
- Size: 454 KB
- Stars: 44
- Watchers: 1
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Agents: AGENTS.md
Awesome Lists containing this project
- awesome-dependency-injection-in-python - Modern DI - powerful DI-framework with scopes and IoC-container [🐍, MIT License]. (Software / DI Frameworks / Containers)
README
"Modern-DI"
==
| Project | Badges |
|----------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| common | [](https://mypy.readthedocs.io/en/stable/getting_started.html#strict-mode-and-configuration) [](https://github.com/modern-python/modern-di/stargazers) |
| modern-di | [](https://pypi.python.org/pypi/modern-di ) [](https://pypistats.org/packages/modern-di) |
| modern-di-fastapi | [](https://pypi.python.org/pypi/modern-di-fastapi) [](https://pypistats.org/packages/modern-di-fastapi) |
| modern-di-faststream | [](https://pypi.python.org/pypi/modern-di-faststream) [](https://pypistats.org/packages/modern-di-faststream) |
| modern-di-litestar | [](https://pypi.python.org/pypi/modern-di-litestar) [](https://pypistats.org/packages/modern-di-litestar) |
`modern-di` is a python dependency injection framework which, among other things,
supports the following:
- Async and sync dependency resolution
- Scopes and granular context management
- Python 3.10+ support
- Fully typed and tested
- Integrations with `FastAPI`, `FastStream` and `LiteStar`
## 📚 [Documentation](https://modern-di.readthedocs.io)
## 📦 [PyPi](https://pypi.org/project/modern-di)
## 📝 [License](LICENSE)