ets-labs/python-dependency-injector
Dependency injection framework for Python observed · 2026-08-28
Health v2 · maintenance only
95/100
- Activity 97
- Release rhythm 89
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 9.0
- age_days: 4259
- days_rel: 76
- days_push: 22
- n_releases_24m: 13
Adoption not part of the score
4908 stars · 351 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Dependency Injector is a dependency injection (IoC) framework for Python, offering providers such as Factory, Singleton, Configuration, and Resource, plus declarative and dynamic containers. It is written in Cython for performance, supports asynchronous injections, wiring into frameworks like Flask, Django, FastAPI, and Aiohttp, and is mypy-friendly with typing stubs.
Use cases
- manage dependency injection in a python application
- replace api clients with stubs in tests via provider overriding
- load configuration from yaml json or environment variables
- wire dependencies into flask or fastapi functions
- implement singleton and factory patterns with an ioc container
- inject dependencies into async python code
When to choose
- you want explicit, testable object assembly with provider overriding
- you need fast, production-ready DI with Cython performance
- you use Flask, Django, FastAPI, Aiohttp, or Sanic and want framework integration
- you need mypy-friendly typing stubs and async injection support
When to avoid
- your project is small and manual constructor injection is sufficient
- you prefer implicit or decorator-driven DI frameworks
- you need a DI framework for a language other than Python
Facets
library · maturity stable
middleware configuration-management testing developer-tools developer-tools backend web-development python cross-platform windows dependency-injection ioc-container design-patterns cython asyncio wiring flask fastapi aiohttp mypy-friendly automation linux macos
6 sources
- readme: https://github.com/ets-labs/python-dependency-injector · fetched 2026-08-28 · 6658b9102e38
- homepage: https://python-dependency-injector.ets-labs.org/ · fetched 2026-08-29 · 9f9dbbd07ffa
- site_page: https://python-dependency-injector.ets-labs.org/introduction/key_features.html · fetched 2026-08-29 · db19cda79d6c
- site_page: https://python-dependency-injector.ets-labs.org/introduction/installation.html · fetched 2026-08-29 · d835d95a1c2d
- site_page: https://python-dependency-injector.ets-labs.org/api/index.html · fetched 2026-08-29 · d58f049b2506
- site_page: https://python-dependency-injector.ets-labs.org/main/changelog.html · fetched 2026-08-29 · e5a213cbac60
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| ets-labs/python-dependency-injector | main | 95 |
For agents
markdown · JSON · MCP: product_card(name="ets-labs/python-dependency-injector")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem