Tutorial (runnable examples)ΒΆ
Each page below includes one or more focused, self-contained scripts sourced verbatim from
examples/ via literalinclude.
Run locally with
uv run python ....For Pyodide-compatible scripts, use the Run button in the top-right of the code block.
- Quickstart
- Registration methods
- Autoregistration
- Lifetimes
- Scopes & cleanup
- Scope context values
- Function injection
- Named components
- Annotation normalization
- Providers
- Compilation
- Open generics
- ResolverContext
- Lock modes
- Async
- Errors & troubleshooting
- Resolve all components
- Maybe
- Supported frameworks
- Pydantic settings
- Pytest plugin
- FastAPI