that-depends
Typed dependency injection for Python applications
All Skills in This Repository (1)
Pure Emerald Level IndicatorsFrequently Asked Questions
FAQPage SchemaHow to install that-depends?โผ
Run `npx skills add modern-python/that-depends --all -g -y` in your terminal to install this skill globally.
What is that-depends used for?โผ
It is a typed dependency injection framework for Python that lets you register providers on containers and inject them into functions with @inject and Provide.
Does that-depends work with FastAPI?โผ
Yes. It has built-in integrations for FastAPI, FastStream, and Litestar, so dependencies flow directly into your route handlers.
How do I mock dependencies in tests with that-depends?โผ
Use the provider override APIs, such as override_context_sync, to swap in fakes during tests instead of patching call sites.
Is that-depends suitable for async Python code?โผ
Yes. It is async-first, supports async factories and resources, and manages scoped context for async applications.
Related Repositories in Software Engineering
View All in Software Engineeringโopenclaw
Run a personal AI assistant across your devices and chat apps
superpowers
Gives coding agents a disciplined workflow from idea to merged code
react
AI agent skills for building, testing, and porting React core