google/pinject
A pythonic dependency injection library. observed · 2026-08-28
Health v2 · maintenance only
10/100
- Activity 0
- Release rhythm 8
- Longevity 100
Flags: archived
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4822
- days_rel: n/a
- days_push: 1989
- n_releases_24m: 0
Adoption not part of the score
1342 stars · 86 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Pinject is a Python dependency injection library from Google that assembles objects into graphs with minimal boilerplate. It is designed to be pythonic, requiring no decorators or annotations to get started.
Use cases
- wire dependencies in a python object-oriented codebase
- assemble object graphs without decorators or annotations
- replace verbose java-style DI frameworks in python
- make classes easier to unit test with injected dependencies
- get started with dependency injection in one line
When to choose
- you write lots of object-oriented python and want low-boilerplate DI
- you value clear error messages over framework magic
- you want a DI library designed for python rather than a port of Guice or Spring
When to avoid
- you need a library with active development and recent releases
- you need advanced DI features like scoped lifecycles found in heavier frameworks
- your project is not python
Facets
library · maturity maintenance
developer-tools configuration-management developer-tools python cross-platform dependency-injection object-graphs pythonic google python
3 sources
- readme: https://github.com/google/pinject · fetched 2026-08-28 · 530a9b536f22
- homepage: https://pypi.org/project/pinject/ · fetched 2026-08-29 · 4b4e8fead74a
- registry_pypi: https://pypi.org/pypi/pinject/json · fetched 2026-08-29 · 9162b585237c
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| google/pinject | main | 10 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem