pinject
A pythonic dependency injection library. (by google)
compclasses
Like dataclasses, but for composition (by FBruzzesi)
pinject | compclasses | |
---|---|---|
2 | 1 | |
1,342 | 7 | |
- | - | |
10.0 | 6.3 | |
about 3 years ago | about 1 month 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).
compclasses
Posts with mentions or reviews of compclasses.
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
Documentation: https://fbruzzesi.github.io/compclasses Github: https://github.com/fbruzzesi/compclasses
What are some alternatives?
When comparing pinject and compclasses you can also consider the following projects:
Dependency Injector - Dependency injection framework for Python
serum - Dependency injection framework for Python 3.6
antidote - Dependency injection for Python
diay.py - Dependency injection library for Python.
dependencies - Constructor injection designed with OOP in mind.