di

Pythonic dependency injection (by adriangb)

Di Alternatives

Similar projects and alternatives to di

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better di alternative or higher similarity.

di reviews and mentions

Posts with mentions or reviews of di. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-09-09.
  • Python Type Hints Are Turing Complete
    9 projects | news.ycombinator.com | 9 Sep 2022
    Indeed.

    The dep injection is fastapi and typer code though, and quite tied to it. So it's worth mentioning that somebody is attempting (quite successfully from the look of it) to create a generic lib of dep injection using annotation named DI, inspired by those libs: https://github.com/adriangb/di

  • I built a standalone version of FastAPI's dependency injection system
    3 projects | /r/Python | 15 Nov 2021
    Also, to clarify because I realized my comment above was confusing: I did not mean that 1 file == 1 function in the def a_function sense, I meant it in the "functionality" sense. So for example di/_scope_validation.py is a piece of functionality (validating scopes) and so it is in it's own file instead of being at the top of di/container.py. I guess the entire project could be a 1000 LOC container.py file, I think I would personally find that a bit hard to digest, but it's for others to read not me so...
  • di: pythonic dependency injection
    1 project | dev.to | 1 Oct 2021
    We provide some basic benchmarks comparing to FastAPI.
  • A note from our sponsor - SaaSHub
    www.saashub.com | 29 Apr 2024
    SaaSHub helps you find the best software and product alternatives Learn more →

Stats

Basic di repo stats
5
275
0.0
7 months ago

adriangb/di is an open source project licensed under MIT License which is an OSI approved license.

The primary programming language of di is Python.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com