Dependency Injector — Dependency injection microframework for Python¶
Dependency Injector is a dependency injection microframework for Python. It was designed to be unified, developer-friendly tool that helps to implement dependency injection design pattern in formal, pretty, Pythonic way.
Dependency Injector framework key features are:
- Easy, smart, pythonic style.
- Obvious, clear structure.
- Extensibility and flexibility.
- High performance.
- Memory efficiency.
- Thread safety.
- Documentation.
- Semantic versioning.
Dependency Injector containers and providers are implemented as C extension types using Cython.
Status¶
PyPi | |
Python versions and implementations | |
Builds and tests coverage | |
Github |
Contents¶
- Introduction
- Installation
- Providers
- IoC Containers
- Examples
- Movie lister naive example
- Services mini application example (v1 - multiple containers)
- Services mini application example (v2 - single container)
- Bundles mini application example
- Use cases mini application example
- Dependency injection and password hashing in Python
- Chained Factories pattern
- Factory of Factories pattern
- API Documentation
- Feedback
- Changelog
- 3.14.3
- 3.14.2
- 3.14.1
- 3.14.0
- 3.13.2
- 3.13.1
- 3.13.0
- 3.12.4
- 3.12.3
- 3.12.2
- 3.12.1
- 3.12.0
- 3.11.3
- 3.11.2
- 3.11.1
- 3.11.0
- 3.10.0
- 3.9.1
- 3.9.0
- 3.8.2
- 3.8.1
- 3.8.0
- 3.7.1
- 3.7.0
- 3.6.1
- 3.6.0
- 3.5.0
- 3.4.8
- 3.4.7
- 3.4.6
- 3.4.5
- 3.4.4
- 3.4.3
- 3.4.2
- 3.4.1
- 3.4.0
- 3.3.7
- 3.3.6
- 3.3.5
- 3.3.4
- 3.3.3
- 3.3.2
- 3.3.1
- 3.3.0
- 3.2.5
- 3.2.4
- 3.2.3
- 3.2.2
- 3.2.1
- 3.2.0
- 3.1.5
- 3.1.4
- 3.1.3
- 3.1.2
- 3.1.1
- 3.1.0
- 3.0.1
- 3.0.0
- 2.2.10
- 2.2.9
- 2.2.8
- 2.2.7
- 2.2.6
- 2.2.5
- 2.2.4
- 2.2.3
- 2.2.2
- 2.2.1
- 2.2.0
- 2.1.1
- 2.1.0
- 2.0.0
- 1.17.0
- 1.16.8
- 1.16.7
- 1.16.5
- 1.16.4
- 1.16.1
- 1.15.2
- 1.15.1
- 1.15.0
- 1.14.11
- 1.14.10
- 1.14.9
- 1.14.8
- 1.14.7
- 1.14.6
- 1.14.5
- 1.14.4
- 1.14.3
- 1.14.2
- 1.14.1
- 1.14.0
- 1.13.2
- 1.13.1
- 1.13.0
- 1.12.0
- 1.11.2
- 1.11.1
- 0.11.0
- 0.10.5
- 0.10.4
- 0.10.3
- 0.10.2
- 0.10.1
- 0.10.0
- 0.9.5
- 0.9.4
- 0.9.3
- 0.9.2
- 0.9.1
- 0.8.1
- 0.7.8
- 0.7.7
- 0.7.6
- Previous versions