Python Dependency Injection

Open-source Python projects categorized as Dependency Injection

Top 17 Python Dependency Injection Projects

  • Dependency Injector

    Dependency injection framework for Python

    Project mention: Java 21 makes me like Java again | news.ycombinator.com | 2023-09-16

    Nothing to do with the nature of the language, but with the nature of the program.

    If you're writing a few line script, you don't need a DI container. Once your program gets large, it becomes extremely messy without one. It's no surprise projects like [1] exist.

    [1] https://github.com/ets-labs/python-dependency-injector

  • injector

    Python dependency injection framework, inspired by Guice

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

  • kink

    Dependency injection container made for Python

  • flask_injector

    Adds Injector support to Flask.

  • flama

    Fire up your models with the flame 🔥

    Project mention: Introducing Flama for Robust Machine Learning APIs | dev.to | 2023-12-18

    There has been a considerable effort in the last few years to try and standardise the way in which these type of APIs are implemented via different frameworks. However, over the last few years, a new type of functionality has become more and more popular: machine learning (ML) models; and the existing frameworks for building APIs are not well suited for this type of functionality. In this series of posts, we will learn how to build APIs using a Framework for the development of Lightweight Applications and Machine-learning Automation, also known as Flama.

  • lagom

    📦 Autowiring dependency injection container for python 3 (by meadsteve)

  • FastDepends

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

    Project mention: FastDepends: FastAPI DI system cleared of all HTTP logic | news.ycombinator.com | 2023-06-29
  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

  • fastapi-class

    provides a class-based View decorator to help reduce the amount of boilerplate necessary when developing related routes. ✨🚀

  • Tanjun

    A flexible command framework designed to extend the Hikari experience

  • antidote

    Dependency injection for Python (by Finistere)

  • Bevy

    A dependency injection framework for Python! Bevy's primary goal is to help you write amazing code with less effort. (by ZechCodes)

    Project mention: Bevy v2.0 | /r/Python | 2023-05-10

    Looking at the repos, it looks like this one actually came first. 0.1.0 tag for this library is February 2020. Where as the post for the 0.1 of the game library is August 2020.

  • eff

    Python library to work with algebraic effects (by orsinium-labs)

  • fastapi-listing

    Advanced items listing library that gives you freedom to design complex listing REST APIs that can be read by human.

    Project mention: 📢Excited to share the latest release of fastapi-listing. It Just Got Better😍 | /r/programming | 2023-09-10
  • pytest-fastapi-deps

    This library allows you to easily replace FastAPI dependencies in your tests. Regular mocking techniques do not work due to the inner working of FastAPI.

  • deadsimple

    A dependency injection library for python, aimed for the least amount of magic.

  • python-rest-template

    A clean, scalable, i18n ready FastAPI template

  • diay.py

    Dependency injection library for Python.

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2023-12-18.

Python Dependency Injection related posts

Index

What are some of the best open-source Dependency Injection projects in Python? This list will help you:

Project Stars
1 Dependency Injector 3,528
2 injector 1,156
3 kink 304
4 flask_injector 264
5 flama 254
6 lagom 240
7 FastDepends 168
8 fastapi-class 101
9 Tanjun 90
10 antidote 89
11 Bevy 68
12 eff 64
13 fastapi-listing 36
14 pytest-fastapi-deps 25
15 deadsimple 10
16 python-rest-template 3
17 diay.py 2
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com