A simple dependency injection framework for Python, supporting both sync and async providers, scoped contexts, and autowiring. Current version 3.9.2, actively maintained with frequent releases.
pip install that-dependsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic setup with container registration and dependency injection.
Use `from that_depends import container` instead of `from that_depends import Container`.
Check the migration guide. Use new `container.register()` and `Provide` annotations.
Prefer `service = container.resolve(MyService)` over `@inject`.
Ensure you `await` when resolving async providers, e.g., `service = await container.resolve(MyService)`.
No dependency data recorded yet.
No resource links recorded.