Skip to main content

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.

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.1.0.tar.gz (34.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.1.0-py3-none-any.whl (46.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: that_depends-4.1.0.tar.gz
  • Upload date:
  • Size: 34.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.2 {"installer":{"name":"uv","version":"0.12.2","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.1.0.tar.gz
Algorithm Hash digest
SHA256 f991312771ccf0052b7eb6f184864d048cabb5f24c306b728e02ede7d2ac9a9b
MD5 f35829053103cf4bf9fbb03598dbe55c
BLAKE2b-256 9fd531646cdafb8ed902def9bad6eee156c42e517141116249595bd29d614262

See more details on using hashes here.

File details

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

File metadata

  • Download URL: that_depends-4.1.0-py3-none-any.whl
  • Upload date:
  • Size: 46.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.2 {"installer":{"name":"uv","version":"0.12.2","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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 93b122d9d9692c74fb519f59775fbf0c61d64d653521114f3bac77d03a3c2c4d
MD5 17721d8bac8bbec42dbf23d479dbfdf9
BLAKE2b-256 fbc7a0dc910aaeac4cf5f803347e0df6e8e7665d5e42b83ed86fef87372693c2

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

4.1.0

Supported by

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