pinject
A pythonic dependency injection library. (by google)
antidote
Dependency injection for Python (by Finistere)
pinject | antidote | |
---|---|---|
2 | 2 | |
1,342 | 89 | |
- | - | |
10.0 | 0.0 | |
about 3 years ago | over 1 year ago | |
Python | Python | |
Apache License 2.0 | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
pinject
Posts with mentions or reviews of pinject.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-01-16.
-
Compclasses: prefer composition over inheritance
pinject: https://github.com/google/pinject
-
Dependency Injection in Python?
Personally I am not a fan of DI, but I had good time using pinject. Easy to use, Pythonic. However, the issue is whether the project is dead or not (last stable release 2019, last commit on master 2020).
antidote
Posts with mentions or reviews of antidote.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-01-16.
-
Compclasses: prefer composition over inheritance
antidote: https://github.com/Finistere/antidote
- Antidote: Dependency Injection for Python
What are some alternatives?
When comparing pinject and antidote you can also consider the following projects:
Dependency Injector - Dependency injection framework for Python
compclasses - Like dataclasses, but for composition
serum - Dependency injection framework for Python 3.6
diay.py - Dependency injection library for Python.
dependencies - Constructor injection designed with OOP in mind.
FastDepends - FastDepends - FastAPI Dependency Injection system extracted from FastAPI and cleared of all HTTP logic. Async and sync modes are both supported.
Bevy - A dependency injection framework for Python! Bevy's primary goal is to help you write amazing code with less effort.