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