Skip to main content

Simple, typed dependency-injection framework for Python

Project description

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.

Project details


Release history Release notifications | RSS feed

This version

4.0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

that_depends-4.0.1.tar.gz (31.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

that_depends-4.0.1-py3-none-any.whl (44.1 kB view details)

Uploaded Python 3

File details

Details for the file that_depends-4.0.1.tar.gz.

File metadata

  • Download URL: that_depends-4.0.1.tar.gz
  • Upload date:
  • Size: 31.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for that_depends-4.0.1.tar.gz
Algorithm Hash digest
SHA256 70604d05dfa75d001a6d0614acefda4f00a637f038b4d24751efb1665ff22eb4
MD5 4414afaa90507aed07d9c34307537609
BLAKE2b-256 ce1cd1fb8c036fa78d42624f53a19e13d477479decfe90ee685ddec9d3df31bc

See more details on using hashes here.

File details

Details for the file that_depends-4.0.1-py3-none-any.whl.

File metadata

  • Download URL: that_depends-4.0.1-py3-none-any.whl
  • Upload date:
  • Size: 44.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for that_depends-4.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 55c62efd50ef6e18b92eb77d04b4bd379a2ac0a8bee653cc0336aa0618cf0762
MD5 c9a81d310f5a8acef05cf8d25c2fa220
BLAKE2b-256 545d5490dea03534a41092aa8bdf85181cf5fedc79c129037a8aaf235b8cba7d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page