Overview of dishka DI framework
developdishka is a dependency injection (DI) framework designed to manage object lifespans through a flexible scoping system. It provides an Inversion of Control (IoC) container that focuses exclusively on DI without requiring custom markers or decorators in your business logic.
Key capabilities include:
- Custom Scopes: Define object lifespans for the entire application, specific requests, or any arbitrary level in between.
- Finalization: Built-in support for releasing dependencies (e.g., closing database connections) when their scope ends.
- Modular Providers: Organize factories into small, reusable classes rather than large monolithic functions.
- Clean Code: Dependencies are resolved without cluttering code with global variables or library-specific specifiers.
- Performance: Optimized for speed, often outperforming other DI alternatives.