Skip to content

Installation

Requirements

  • Python >= 3.11
  • Zero runtime dependencies

Install

uv add spryx-di
pip install spryx-di
poetry add spryx-di

Optional Extras

uv add spryx-di[fastapi]    # Inject(), ScopedInject(), configure()
uv add spryx-di[settings]   # pydantic-settings integration
pip install spryx-di[fastapi]
pip install spryx-di[settings]
poetry add spryx-di -E fastapi
poetry add spryx-di -E settings

Development

git clone https://github.com/spryx-ai/spryx-di.git
cd spryx-di
make install  # installs dev deps + pre-commit hooks
make check    # lint + typecheck + tests with coverage