Skip to content

A curated list of awesome things related to dependency inversion / dependency injection in Python. (Contributions welcomed).

Notifications You must be signed in to change notification settings

sfermigier/awesome-dependency-injection-in-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 

Repository files navigation

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 ★3692 - Dependency injection framework for Python. [🐍, BSD 3-Clause "New" or "Revised" License].
  • returns ★3375 - Make your functions return something meaningful, typed, and safe!. [🐍, BSD 2-Clause "Simplified" License].
  • Injector ★1247 - Python dependency injection framework, inspired by Guice. [🐍, BSD 3-Clause "New" or "Revised" License].
  • Inject ★670 - Python dependency injection. [🐍, Apache License 2.0].
  • Dependencies ★358 - Constructor injection designed with OOP in mind. [🐍, BSD 2-Clause "Simplified" License].
  • Kink ★369 - Dependency injection container made for Python. [🐍, MIT License].
  • Punq ★290 - An IoC container for Python 3.6+. [🐍, MIT License].
  • di ★286 - Pythonic dependency injection. [🐍, MIT License].
  • svcs ★255 - A Flexible Service Locator for Python. [🐍, MIT License].
  • Lagom ★246: Type based auto-wiring dependency injection with support for async and threading. [🐍, MIT License].
  • Dishka ★258 - Cute DI framework with agreeable API and everything you need. [🐍, Apache License 2.0].
  • Rodi ★167 - Implementation of dependency injection for Python 3. [🐍, MIT License].
  • injectable ★107 - Python Dependency Injection for Humans™. [🐍, MIT License].
  • That Depends ★94 - simple DI-framework, inspired by python-dependency-injector, but without wiring [🐍, MIT License].
  • Opyoid ★63 - Dependency injection library for Python. [🐍, MIT License].
  • Wireup ★71 - Concise, Powerful, and Type-Safe Python Dependency Injection Library. [🐍, MIT License].
  • Fresh Bakery ★20 - Bake dependency injections asynchronously and stupidly simple. [🐍, MIT License].
  • andi ★20 - Library for annotation-based dependency injection. [🐍, BSD 3-Clause "New" or "Revised" License].

DI components of Web frameworks

Several modern Python web frameworks include DI components, including:

Archived or unmaintained DI frameworks

  • Antidote ★91 - Dependency injection for Python. [🐍, MIT License].
  • Serum ★84 - Dependency injection framework for Python 3.6. [🐍, MIT License].
  • Aiodine ★53 - 🧪 Async-first Python dependency injection library. [🐍, MIT License].
  • Wiring ★26 - Architectural foundation for Python applications. [🐍, Apache License 2.0].

Integration with web frameworks

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

See also above.

About

A curated list of awesome things related to dependency inversion / dependency injection in Python. (Contributions welcomed).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published