Comparison
dependencies vs inject vs pinject
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Constructor injection designed with OOP in mind.
Slowing down. Last release over 2 years ago, little activity since. Fine for existing code; think twice for a new project.
$
pip install dependenciesPython dependency injection framework.
Maintained. Last release 5 months ago, commits in 7 of the last 26 weeks.
$
pip install injectA pythonic dependency injection library
Archived. The repository is read-only: no more fixes or releases will come.
$
pip install pinjectIn short
- dependencies is slowing down (last release over 2 years ago): fine for existing code, risky for a new project.
- pinject is archived: avoid it for new projects.
- inject is the most used: 2.7M downloads a month, 22× more than pinject.
- inject also has the best Pythie’s Index (69).
- inject is growing fastest: downloads +14% over the last month.
- Safe default for a new project: inject.
Side by side
| Metric | dependencies | inject | pinject |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 27 | Pythie’s Index: 69 | Pythie’s Index: 4 |
| Verdict | Slowing down | Maintained | Archived |
| Downloads / month | 72.3K | 2.7M | 122.4K |
| Downloads, month over month | +34% | +14% | +11% |
| GitHub stars | 362 | 778 | 1.3K |
| Stars, last 7 days | – | – | – |
| Direct dependents | 3 | 17 | 0 |
| Last release | Nov 24, 2024 | Jul 13, 2026 | Mar 23, 2021 |
| Releases, 12 months | 0 | 3 | 0 |
| Weeks with commits | – | 7 / 26 | 0 / 26 |
| Recent contributors | – | 9 | 11 |
| First release | Jan 2016 | Feb 2010 | Jun 2013 |
| Python versions | 3.4 – 3.13 | 3.10 – 3.14 | – |
| License | BSD-2-Clause | Apache-2.0 | Apache-2.0 |
| Known vulnerabilities | None | None | None |
Bold marks the best value in each row. Pythie’s Index rates maintenance out of 100: how it works.