/that-depends

Simple Dependency injection framework for Python

Primary LanguagePythonMIT LicenseMIT

"That Depends"

Test Coverage MyPy Strict Supported versions PyPI Downloads GitHub stars libs.tech recommends

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).
  • 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

📦 PyPi

📝 License