Dependency Injection framework with IOC-container and scopes
Project description
"Modern-DI"
| Project | Badges |
|---|---|
| common | |
| modern-di | |
| modern-di-fastapi | |
| modern-di-faststream | |
| modern-di-litestar | |
| modern-di-typer | |
| modern-di-pytest |
modern-di is a python dependency injection framework which supports the following:
- Automatic dependencies graph based on type annotations
- Also, explicit dependencies are allowed where needed
- Scopes and context management
- Python 3.10+ support
- Fully typed and tested
- Integrations with
FastAPI,FastStream,LiteStarandTyper - Pytest integration (
modern-di-pytest) — turns any DI dependency into a pytest fixture
Usage examples:
- with LiteStar - litestar-sqlalchemy-template
- with FastAPI - fastapi-sqlalchemy-template
Part of modern-python
Browse the full list of templates and libraries in
modern-python — see the org profile for the
categorized index.
📚 Documentation
📦 PyPi
📝 License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
modern_di-2.16.0.tar.gz
(14.8 kB
view details)
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 modern_di-2.16.0.tar.gz.
File metadata
- Download URL: modern_di-2.16.0.tar.gz
- Upload date:
- Size: 14.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6e6c701eb67faa7bc83d1580c3598c30da2b11c27aefa3047138dc056f7c42a
|
|
| MD5 |
6018714620e7146c56adacefbf1e855d
|
|
| BLAKE2b-256 |
f3188e4eb8718da0f67fdf4ae725f62be0fd86084f2114ff1a0436cb70057f8a
|
File details
Details for the file modern_di-2.16.0-py3-none-any.whl.
File metadata
- Download URL: modern_di-2.16.0-py3-none-any.whl
- Upload date:
- Size: 22.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d15926a8221c1934af8df49003e3a0e49bf65abf8600f92e5205722385e744c5
|
|
| MD5 |
8a94c967068a6ae07f0ac4cfb802a45f
|
|
| BLAKE2b-256 |
87775e65cfe3699717638ace54feaec1bd24324bbe8cac6ddb4aa4e205cd3e36
|