Documentation

Typed dependency injection for small Python apps.

Injex wires services, CLIs, workers, and tests with regular Python type hints, explicit registrations, scoped lifetimes, overrides, and startup validation.

Python 3.10–3.13 Zero runtime dependencies PEP 561 typed

Install

pip install injex

Best fit

Rule of thumb: keep container calls at the composition root. Application services should depend on normal Python types.