.. meta::
   :description: A step-by-step tutorial of runnable examples for diwire, sourced verbatim from the repository examples/ folder.

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.

.. toctree::
   :maxdepth: 1

   quickstart
   registration-methods
   autoregistration
   lifetimes
   scopes
   scope-context-values
   function-injection
   named-components
   providers
   compilation
   open-generics
   resolver-context
   lock-modes
   async
   errors
   all-components
   maybe
   supported-frameworks
   pydantic-settings
   pytest-plugin
   fastapi
