Summary
Simplify the examples directory by using PEP 723 inline script metadata instead of individual pyproject.toml files per example.
Motivation
- Current examples are verbose - each needs its own
pyproject.toml, directory structure, and __main__.py
- This adds friction for users trying to understand or copy examples
- PEP 723 (supported by
uv run) allows dependencies to be declared inline in a single script file
Goal
Examples that are single self-contained .py files runnable with uv run example.py, making them easier to read, copy, and adapt.
AI Disclaimer
Summary
Simplify the examples directory by using PEP 723 inline script metadata instead of individual
pyproject.tomlfiles per example.Motivation
pyproject.toml, directory structure, and__main__.pyuv run) allows dependencies to be declared inline in a single script fileGoal
Examples that are single self-contained
.pyfiles runnable withuv run example.py, making them easier to read, copy, and adapt.AI Disclaimer