Wireup
Performant, concise, and easy-to-use dependency injection container for Python 3.8+.
Key features
-
Dependency Injection
Inject services and configuration using a clean and intuitive syntax.
-
Autoconfiguration
Automatically inject dependencies based on their types without additional configuration for the most common use cases.
-
Interfaces / Abstract classes
Define abstract types and have the container automatically inject the implementation.
-
Factory pattern
Defer instantiation to specialized factories for full control over object creation when necessary.
-
Singletons/Transient dependencies
Declare dependencies as transient or singletons which tells the container whether to inject a fresh copy or reuse existing instances.
-
Declarative/Imperative
Configure services through annotations in a fully declarative style or build everything by code for full control over instantiation.
Framework integrations
Simplified use with the following frameworks.
License
This project is licensed under the terms of the MIT license.