Skip to content

Navigation Menu

Sign in
Sign up

Repository files navigation

that-depends

PyPI version Supported Python versions Downloads Test Coverage CI License GitHub stars MyPy Strict pyrefly libs.tech recommends Context7 llms.txt

Simple, typed dependency injection framework for Python.

It is production-ready and gives you the following:

  • Simple async-first DI framework with IOC-container.
  • Python 3.10+ support.
  • Full coverage by types annotations (mypy in strict mode, pyrefly).
  • Inbuilt FastAPI, FastStream and LiteStar compatibility.
  • Dependency context management with scopes.
  • Overriding dependencies for tests.
  • Injecting dependencies in functions and coroutines without wiring.
  • Package with zero dependencies.

Installation

pip install that-depends

Ecosystem

that-depends is part of the modern-python family. If you're starting a new project, consider modern-di β€” the newer DI framework from the same author, with separate framework adapters:

that-depends remains actively maintained β€” see the migration guide if you want to move existing projects across.

πŸ“š Documentation

πŸ“¦ PyPI

πŸ“ License

Part of modern-python

Browse the full list of templates and libraries in modern-python β€” see the org profile for the categorized index.

About

Simple, typed dependency-injection framework for Python

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

253 stars

Watchers

6 watching

Forks

Releases

Sponsor this project

Used by

Contributors

Languages

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /