pyinfra
pyinfra.com
- Free plan
- Windows
- macOS
- Linux
- API
- Self-hosted
What pyinfra is
pyinfra is a free, Python-native tool for automating infrastructure across servers. It connects over SSH to run commands concurrently and idempotently, using Python deploys and inventories. Operations can describe a desired host state or run specific commands, and the `--dry` option previews per-host changes before they are applied. The project describes use from one host to 10,000, with parallel execution and real-time streaming output. Target hosts need a shell and SSH, but no agent, daemon, state file, or control plane. Connectors include SSH, Docker, Terraform, and the local machine; operations cover package managers, files, services, databases, security, and containers. pyinfra runs wherever Python runs, with Mac, Linux, and Windows listed as control systems. Python 3.10 or later is required. The project is MIT licensed and directs users to Matrix and Stack Overflow for help, and GitHub issues for bug reports.
Who it suits
It suits people who want to automate infrastructure using Python deploys and inventories, from a single host to larger server sets. It requires Python 3.10 or later, and target hosts need a shell and SSH.
Good to know, and what to watch
- Runs commands concurrently over SSH.
- Previews per-host changes with `--dry`.
- Does not require target-host agents or daemons.
- Includes connectors for Docker and Terraform.
- Free and MIT licensed.
- Requires Python 3.10 or later.
- Windows installation requires Administrator privileges.
- Remote hosts need a shell and SSH.
Plans
Every plan and pricepyinfra
Open source
The verdict
pyinfra offers agentless server automation with both declarative and direct-command operations. Check the Python requirement and target-host access needs before adopting it.
What the maker publishes
- Agents
- The site says target hosts need a shell and SSH, with no agents, daemons, state files, or control plane. source
- Connectors
- Documented popular connectors include SSH, Docker, Terraform, and the local machine. source
- Control platforms
- pyinfra runs wherever Python runs; the compatibility page names Mac, Linux, and Windows as supported control systems. source
- Declarative and imperative operations
- Operations can describe a desired host state or run specific commands directly. source
- Intended use
- The site presents pyinfra for automating infrastructure across servers using Python deploys and inventories. source
- Operations
- The operations reference lists modules for package managers, files, services, databases, security, and containers. source
- Preview changes
- The site says `--dry` previews per-host changes before they are applied. source
- Purpose
- pyinfra is a Python-native, agentless automation tool that runs commands over SSH concurrently and idempotently. source
- Python requirement
- Python 3.10 or later is required, and pyinfra 3.5.1+ supports Python 3.10 through 3.13. source
- Remote system compatibility
- The compatibility page says pyinfra aims to support Unix-like systems and lists Linux distributions, BSDs, OpenSUSE, macOS via `@local`, and Docker via `@docker`. source
- Scale
- The site says pyinfra works on one host or 10,000, with parallel execution and real-time streaming output. source
- Security practices
- The installation guide recommends keeping pyinfra and dependencies up to date and installing as a regular user rather than root or sudo. source
- Support
- The project directs users to its Matrix room and Stack Overflow for help, and to GitHub issues for bug reports. source
- Windows requirement
- The installation page says Windows users need Administrator privileges for installation. source
Checked against the maker's pages on 5 Oct 2026.