Dependency injection framework for Python
-
Updated
Jul 10, 2024 - Python
Dependency injection (DI) is an implementation of the dependency inversion principle with the aim of separation of concerns by separating the depndency's implementation from the class that's using it. That kind of abstraction makes it possible to have different implementations with the same public methods so the class using it, doesn't need to care which of the implementations is used. This is also especially useful for unit testing.
There are different types of dependency injection:
Dependency injection framework for Python
Python dependency injection framework, inspired by Guice
Dependency injection container made for Python
Cute DI framework with agreeable API and everything you need
A Flexible Service Locator for Python.
Fire up your models with the flame 🔥
FastDepends - FastAPI Dependency Injection system extracted from FastAPI and cleared of all HTTP logic. Async and sync modes are both supported.
Implementation of dependency injection for Python 3
A Clean Architecture Practice with Flask REST API
Python Dependency Injection for Humans™
provides a class-based View decorator to help reduce the amount of boilerplate necessary when developing related routes. ✨🚀
DI-framework, inspired by python-dependency-injector, but without wiring. Python 3.12 is supported
Real world Fast-API application template using gino(Async ORM) based on hexagonal architecture
Dependency injection for Python
A flexible command framework designed to extend the Hikari experience
Dependency injection framework for Python 3.6
Performant, concise, and easy-to-use dependency injection container for Python 3.8+.
iPOPO: a Service-Oriented Component Model for Python
Created by Martin Fowler
Released January 23, 2004