Skip to main content

Simple Dependency Injection framework

Project description

"That Depends"

Test Coverage MyPy Strict Supported versions 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

📚 Documentation

📦 PyPi

📝 License

Project details


Release history Release notifications | RSS feed

This version

3.4.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-3.4.1.tar.gz (71.3 kB view details)

Uploaded Source

Built Distribution

that_depends-3.4.1-py3-none-any.whl (32.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: that_depends-3.4.1.tar.gz
  • Upload date:
  • Size: 71.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.3

File hashes

Hashes for that_depends-3.4.1.tar.gz
Algorithm Hash digest
SHA256 e763bbc95cad5d0d7bc204181e46caa903244abd08d8cdd1179dd71742eeedcb
MD5 1439e96bcd7b0a1815c5002a0927e2ce
BLAKE2b-256 2d96d1faaa9dd65a5bcc46af2947322eabd1e653984dca0bba78dacfb60150bd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for that_depends-3.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 834544897316fd1132759db606ec5b79318114045a79ee6c3922cdc183780d06
MD5 63e436df38ca0905f32fe8a0bcf6529d
BLAKE2b-256 7658103c59aa3ecfe28c8d3bb6c9c4f345ec885f11695aca333d363b8adf2404

See more details on using hashes here.

Supported by

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