A set of documented & tested pyinfra deploys.
This repository is self-hosted with uv — no global pyinfra install required. After installing uv:
# Create the virtualenv and install the pinned pyinfra version from uv.lock
uv sync
# Run pyinfra via uv (picks up the locked pyinfra automatically)
uv run pyinfra --versionAll example commands below can be prefixed with uv run — e.g. uv run pyinfra inventories/docker.py deploy.py.
Simple: deploys two servers: one database and one web running a Python app fetched using Git.
Shows how to execute Python functions as operations directly from the CLI.
Look at using Python functions, and external packages, to generate inventory.