Concepts and key features
With Injection you can implement the principle of Dependency Injection. This is needed for …
Using this framework you can reduce coupling and stop monkeypatching your tests.
The public API of this framework is almost completely identical to Dependency Injector, because the author found it successful and understandable. In addition, this will provide an easy migration to the current framework with Dependency Injector (see section migration from Dependency Injector).
Features
providers - delegate object creation and lifecycle management to providers;
support Python 3.8-3.12;
works with FastAPI, Flask, Django, Litestar;