Python MIT

that-depends

Simple, typed dependency-injection framework for Python

M

modern-python

Dernière activité 27 sept. 2026
modern-python/that-depends

253

étoiles

15

forks

1

issues ouvertes

asynciodependency-injectiondiiocioc-containermockspythonscopes

Ce README est souvent en anglais.

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.

Features:

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

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.

📦 PyPI

📝 License

Part of modern-python

The modern-python org profile has the full categorized list of templates and libraries.

Projets similaires

Dependency injection framework for Python

Pythonaiohttpasynciodependency-injection
Eets-labs
4,9 k étoiles353

🔌 Extremely fast, type-safe dependency injection for Python with auto-wiring, scopes, async factories, and zero deps!

Pythonasyncioblazingly-fastdependency-injection
Mmaksimzayats
252 étoiles4

Python dependency injection

Python
Iivankorobkov
776 étoiles86