Overview of that-depends features
mainthat-depends is a simple, typed dependency injection (DI) framework for Python 3.10+.
Key features include:
- Async-first DI: Built with an Inversion of Control (IOC) container designed for asynchronous workflows.
- Type Safety: Full coverage by type annotations, compatible with
mypyin strict mode andpyrefly. - Framework Compatibility: Inbuilt support for FastAPI, FastStream, and LiteStar.
- Dependency Scopes: Dependency context management using scopes.
- Testability: Ability to override dependencies for testing purposes.
- Zero Dependencies: The package itself has no external dependencies.
- Seamless Injection: Inject dependencies into functions and coroutines without manual wiring.