Skip to content
المشاريع

sfermigier/awesome-dependency-injection-in-python

عرض على GitHub

حول

قائمة منتقاة بموارد مميزة حول عكس التبعيات وحقن التبعيات في Python. نرحب بالمساهمات.

أدوات التطوير

كيف تُقاس هذه الأرقام

النمو المقاس للنجوم

خلال 24 ساعة
٠
خلال 7 أيام
+١
خلال 15 يومًا
+١
خلال شهر
جارٍ جمع السجل

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل

Awesome Dependency Injection in Python

A curated list of awesome things related to dependency inversion / dependency injection in Python.

Awesome

Talks / slides

  • Python Dependency Injection (PDF) (Alex Martelli, 2008).
  • Fang: Pythonic dependency injection (video) (Nathan Craike, 2015).

Videos

Articles / blog posts

Books

Software

DI Frameworks / Containers

  • python-dependency-injector ★4912 - Dependency injection framework for Python. [🐍, BSD 3-Clause "New" or "Revised" License].
  • returns ★4372 - Make your functions return something meaningful, typed, and safe!. [🐍, BSD 2-Clause "Simplified" License].
  • Injector ★1540 - Python dependency injection framework, inspired by Guice. [🐍, BSD 3-Clause "New" or "Revised" License].
  • Dishka ★1290 - Cute DI framework with agreeable API and everything you need. [🐍, Apache License 2.0].
  • Inject ★776 - Python dependency injection. [🐍, Apache License 2.0].
  • FastDepends ★518 - FastAPI Dependency Injection system extracted from FastAPI and cleared of all HTTP logic. [🐍, MIT License].
  • Kink ★445 - Dependency injection container made for Python. [🐍, MIT License].
  • Wireup ★436 - Concise, Powerful, and Type-Safe Python Dependency Injection Library. [🐍, MIT License].
  • Punq ★432 - An IoC container for Python 3.6+. [🐍, MIT License].
  • svcs ★421 - A Flexible Service Locator for Python. [🐍, MIT License].
  • di ★332 - Pythonic dependency injection. [🐍, MIT License].
  • diwire ★253 - Type-safe dependency injection for Python with auto-wiring, scopes, async factories, and zero deps [🐍, MIT License].
  • That Depends ★253 - simple DI-framework, inspired by python-dependency-injector, but without wiring [🐍, MIT License].
  • Lagom ★246: Type based auto-wiring dependency injection with support for async and threading. [🐍, MIT License].
  • Rodi ★240 - Implementation of dependency injection for Python 3. [🐍, MIT License].
  • python-injection ★127 - Dead-simple dependency injection framework for Python. [🐍, MIT License].
  • injectable ★119 - Python Dependency Injection for Humans™. [🐍, MIT License].
  • Opyoid ★75 - Dependency injection library for Python. [🐍, MIT License].
  • Modern DI ★66 - powerful DI-framework with scopes and IoC-container [🐍, MIT License].
  • Picodi ★31 - A DI library inspired by FastAPI. It integrates well with FastAPI but can also be used independently. [🐍, MIT License].
  • andi ★24 - Library for annotation-based dependency injection. [🐍, BSD 3-Clause "New" or "Revised" License].
  • Fresh Bakery ★21 - Bake dependency injections asynchronously and stupidly simple. [🐍, MIT License].
  • engin ★21 - a dependency injection powered application framework, inspired by Uber's fx framework. [🐍, MIT License].
  • ididi ★20 - Genius simplicity, unmathced power, dependency injection in a single line of code. [🐍, MIT License]
  • injection ★18 - replacement for python-dependency-injector that works with Python 3.8-3.12 and works with FastAPI, DRF, Flask and Litestar [🐍, MIT License].
  • Injex ★21 - Tiny typed dependency injection container with constructor injection, singleton/transient/scoped lifetimes, test overrides, and graph validation before startup. Zero runtime dependencies. [🐍, MIT License].
  • Clean IoC ★12 - A simple unintrusive dependency injection library for python with strong support for generics [🐍, MIT License].
  • Overlay ★6 - A dependency injection framework with pytest-fixture syntax, plus a configuration language for declarative programming [🐍, MIT License].
  • nuke-di ★5 - Type-hint based DI for async Python: a dependency is a class with connect() / disconnect(), every client connects as soon as its own dependencies have, concurrently, and disconnects in reverse order. A mypy plugin reports an unbuildable tree, mock() / override() replace clients in tests, @job / @worker turn an async function into a process with command-line options and graceful shutdown, and FastAPI, Litestar, FastStream, aiogram, taskiq and MCP handlers take clients by type hint. Zero runtime dependencies. [🐍, MIT License].
  • cdi-di ★0 - powerful python dependency injection, support generics, circular dep, lifetimes and more [🐍, MIT License].

DI components of Web frameworks

Several modern Python web frameworks include DI components, including:

Integration with web frameworks

  • Flask-Injector ★282 - Adds Injector support to Flask. [🐍, BSD 3-Clause "New" or "Revised" License].

See also above.

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…