Skip to content
PyRank
  • Search
  • PyPI
  • GitHub
  • Insights
  • Compare
  • Advisories
  • Ecosystem
  • About

Dependency Injection Python Packages

Python packages with the GitHub topic dependency-injection. Sorted by monthly downloads, with stars and forks.
ets-labs
dependency-injector

Dependency injection framework for Python

11M 5K 358
alecthomas
injector

Python dependency injection framework, inspired by Guice

3.8M 2K 99
hynek
svcs

A Flexible Service Locator for Python.

2.7M 422 25
Lancetnik
fast-depends

FastDepends - FastAPI Dependency Injection system extracted from FastAPI and cleared of all HTTP logic. Async and sync modes are both supported.

2.3M 519 38
mauvilsa
jsonargparse

Minimal effort CLIs derived from type hints and parse from command line, config files and environment variables

1.8M 434 70
reagento
dishka

Cute dependency injection (DI) framework for Python with agreeable API and everything you need

1.5M 1K 133
meadsteve
lagom

📦 Autowiring dependency injection container for python 3

397K 356 21
sanic-org
sanic-ext

Extended Sanic functionality

281K 66 48
ikalnytskyi
picobox

Dependency injection framework designed with Python in mind.

214K 50 3
maldoinc
wireup

Type-driven dependency injection for Python. Fail-fast validation, lifetimes, native integrations for FastAPI, Flask, Django, and more.

163K 443 42
kodemore
kink

Dependency injection container made for Python

132K 445 28
JasperSui
fastapi-injectable

A seamless solution for using FastAPI's dependency injection system outside of route handlers, enabling painless reuse of dependencies in CLI tools, background tasks, and other non-HTTP contexts.

132K 298 12
pyapp-kit
in-n-out

Type-hint-based Python dependency injection you can taste

121K 14 6
Neoteroi
rodi

Implementation of dependency injection for Python 3

88K 242 18
pksol
pytest-fastapi-deps

A fixture which allows easy replacement of fastapi dependencies for testing

76K 34 0
modern-python
that-depends

Simple, typed dependency-injection framework for Python

55K 252 15
peter-daly
clean-ioc

A simple IoC library for python

55K 12 4
Finistere
antidote

Dependency injection for Python

50K 88 9
woltapp
magic-di

Dependency Injector with minimal boilerplate code, built-in support for FastAPI and Celery, and seamless integration to basically anything.

40K 70 2
datalayer
reactor-mcp-server

⚛️ Reactor — Create Python and React.js extensible applications with the Reactor plugins framework.

37K 3 0
FasterSpeeding
alluka

A Python 3.11+ dependency injection framework.

25K 26 4
tylergibbs1
pyfect-dev

Effect (effect.website) for Python: typed errors and dependencies, a fiber runtime with structured concurrency, layers. Pyright-strict.

23K 7 1
modern-python
modern-di

Powerful dependency-injection framework with IoC container and scopes

17K 65 5
tcalmant
ipopo

iPOPO: a Service-Oriented Component Model for Python

15K 73 28
    • Original data from PyPI, GitHub, and OSV; downloads served through ClickHouse
    • Sources & methodology