pyinfra-dev / pyinfra

pyinfra turns Python code into shell commands and runs them on your servers. Execute ad-hoc commands and write declarative operations. Target SSH servers, local machine and Docker containers. Fast and scales from one server to thousands.
https://pyinfra.com
MIT License
3.92k stars 382 forks source link

Docs: Add basic localhost example to "Using the API" page #1212

Closed pirate closed 2 months ago

pirate commented 2 months ago

Fixes: https://github.com/pyinfra-dev/pyinfra/issues/1211

This aims to improve the "getting started with the API" experience a bit: