pinject
A pythonic dependency injection library. (by google)
dependencies
Constructor injection designed with OOP in mind. (by proofit404)
pinject | dependencies | |
---|---|---|
2 | 4 | |
1,342 | 357 | |
- | - | |
10.0 | 0.0 | |
about 3 years ago | about 1 year ago | |
Python | Python | |
Apache License 2.0 | BSD 2-clause "Simplified" 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).
dependencies
Posts with mentions or reviews of dependencies.
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
dependencies: https://github.com/proofit404/dependencies
- How to Write Clean Code (in Python) With SOLID Principles | Principle #2
- Code claimed to be DI without using dependencies module is not DI at all · Issue #499 · proofit404/dependencies
-
Dependency Injection and Python
Dependencies
What are some alternatives?
When comparing pinject and dependencies you can also consider the following projects:
Dependency Injector - Dependency injection framework for Python
antidote - Dependency injection for Python
compclasses - Like dataclasses, but for composition
injector - Python dependency injection framework, inspired by Guice
diay.py - Dependency injection library for Python.
serum - Dependency injection framework for Python 3.6