# python-injector/injector

Python dependency injection framework, inspired by Guice

Repository: https://github.com/python-injector/injector
Canonical: https://ross.abutalabs.com/products/injector
Language: Python
License: BSD-3-Clause
License Family: permissive
Topics: dependency-injection, dependency-injection-framework, di, python, injector
Last push: 2026-07-11T13:14:29+00:00

## Health v2 (maintenance only)
Score: 80/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 92, release rhythm 53, longevity 100
- inputs: {"age_days": 5760, "days_push": 53, "days_rel": 236, "gap_med": 41, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1537, forks 95 (observed 2026-08-28T04:05:00.094553+00:00)

## What it is
A Python dependency injection framework inspired by Google's Guice. It automatically and transitively provides dependencies, reducing boilerplate in larger applications while encouraging modular code through modules.

## Use cases
- manage dependencies in a large python application
- reduce constructor boilerplate with automatic injection
- wire up services with type-hint based DI
- replace manual singleton and factory patterns
- organize bindings into modules like Guice
- statically type-checked dependency injection in python

## When to choose
- you want a Pythonic, Guice-inspired DI framework with static type checking support
- you need multiple independent injector instances without global state
- you want nonintrusive DI that keeps constructors usable manually

## When to avoid
- your project is small and manual keyword-argument injection suffices
- you need member or method injection features
- you prefer a DI framework with global container access

## Facets
- artifact type: library
- maturity: stable
- function: developer-tools
- domain: developer-tools, backend, web-development
- platform: python, cross-platform
- tags: dependency-injection, guice-inspired, type-hints, inversion-of-control

## Member repositories
- python-injector/injector (main) score 80

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:00.094553+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:31:01.869759+00:00, confidence not recorded.
  - readme: https://github.com/python-injector/injector (fetched 2026-08-28T04:05:00.094553+00:00, sha 98299a1affca)
- Data as of 2026-08-30T08:39:29.467469+00:00.
