Libraries and frameworks that implement dependency injection patterns to manage object lifecycles in Python applications.
This is a dependency injection framework and inversion of control container for Python. It decouples object creation from business logic by managing how services and their dependencies are assembled, delivered, and linked within an application. The framework is distinguished by its ability to perform automated component wiring, using import hooks and decorators to inject dependencies into functions and classes across different modules. It supports non-blocking flows through an asynchronous dependency resolver and manages the initialization and shutdown sequences of shared external resources a
ets-labs/python-dependency-injector is a full-featured dependency injection framework and IoC container for Python that supports automatic wiring, lifecycle management, type hints, framework integrations (Flask, aiohttp), and lazy initialization—exactly the kind of comprehensive, production-ready DI library this search is after.