What problem does it solve?
This Skill simplifies managing complex dependencies in Python applications, especially within web frameworks like Litestar and FastAPI, by providing a robust and intuitive dependency injection system.
Core Features & Use Cases
- Automated Dependency Resolution: Automatically injects required objects into your functions and classes.
- Scoped Lifetimes: Manages the lifecycle of dependencies with application, request, action, and step scopes.
- Framework Integrations: Seamlessly integrates with Litestar, FastAPI, and Click for streamlined development.
- Use Case: When building a web API with Litestar, use this Skill to manage database connections, user services, and configuration objects, ensuring they are correctly instantiated and available where needed.
Quick Start
Use the dishka skill to set up a Litestar application with dependency injection.