$npx skillfedfor your agent

pyinfra

pyinfra automates/provisions/manages/deploys infrastructure.

Worth itPyPI UtilitiesReleased Jul 2026290.5K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — pyinfra-3.10.0-py3-none-any.whl
v3.10.0 · released 2026-07-27 · Python <4.0,>=3.10 · 11 runtime deps: click, distro, gevent, jinja2, packaging, paramiko, pydantic, python-dateutil

Yes. pyinfra is actively maintained, has no known vulnerabilities, and offers a low-friction install. It's well-suited if you prefer Python over YAML for infrastructure automation and need agentless execution over SSH or containers. The 11 dependencies are standard and widely used. Consider it if your team is already Python-fluent and wants to avoid learning a separate DSL.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires SSH access to target servers or Docker daemon for container targets; operations execute as the connected user.
  • Low friction install with a pure-Python wheel.
  • Active maintenance with a recent release (18 days old) and sustained development since 2015.

License · maintenance · safety

MIT (permissive) — MIT license permits commercial and private use with minimal restrictions; safe for most deployment contexts.

last release 2026-07-27 (18 days) · last repo commit 2026-07-27 · 5,950 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 290,475 downloads/mo, #7,987 on PyPI

Verify before relying

pip install pyinfra

from pyinfra.operations import apt
apt.packages(
    name="Ensure iftop is installed",
    packages=['iftop'],
    update=True,
    _sudo=True,
)
  • Whether the 11 runtime dependencies (gevent, paramiko, pydantic, etc.) introduce any transitive security concerns not captured in OSV.
  • Performance characteristics and scaling limits when targeting thousands of hosts simultaneously.
Same gist for agents: .md · .json

What it is and what it does

pyinfra is a Python-based infrastructure automation tool that converts Python code into shell commands and executes them on remote servers, Docker containers, or the local machine. Unlike YAML-based tools, it lets you write provisioning logic in Python with full access to the language's ecosystem. It operates agentlessly over SSH or other connectors, meaning no daemon needs to run on target systems.

You define infrastructure state through declarative operations (e.g., installing packages, managing files, running commands) and organize targets in an inventory. pyinfra supports idempotent operations, dry runs, and diffs before changes take effect. It scales from single-server deployments to thousands of hosts and integrates with Docker, Terraform, and Vagrant.

Use it for

  • Provision and configure multiple servers in parallel using Python instead of YAML or shell scripts.
  • Deploy applications with idempotent operations that can be safely re-run without side effects.
  • Automate Docker container setup and configuration as part of a larger deployment pipeline.
  • Write infrastructure code that leverages Python libraries and logic for complex conditional deployments.
  • Perform ad-hoc commands and debugging across many servers with real-time output visibility.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

pyinfra is actively maintained, has no known vulnerabilities, and offers a low-friction install. It's well-suited if you prefer Python over YAML for infrastructure automation and need agentless execution over SSH or containers. The 11 dependencies are standard and widely used. Consider it if your team is already Python-fluent and wants to avoid learning a separate DSL.

Install

pyinfra on PyPI

Before you install

Low friction install with a pure-Python wheel. Active maintenance with a recent release (18 days old) and sustained development since 2015. Supports Python 3.10–3.14.

Requires SSH access to target servers or Docker daemon for container targets; operations execute as the connected user.

License in practice

MIT license permits commercial and private use with minimal restrictions; safe for most deployment contexts.

Quickstart

pip install pyinfra

from pyinfra.operations import apt
apt.packages(
    name="Ensure iftop is installed",
    packages=['iftop'],
    update=True,
    _sudo=True,
)

Verify before relying

  • Whether the 11 runtime dependencies (gevent, paramiko, pydantic, etc.) introduce any transitive security concerns not captured in OSV.
  • Performance characteristics and scaling limits when targeting thousands of hosts simultaneously.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release <4.0,>=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
11 packages
clickdistrogeventjinja2packagingparamikopydanticpython-dateutiltypeguardtypes-paramikotyping-extensions
MaintenanceActively maintained 18 days since the last release
Last repo commit
First released
Downloads290,475 / month, #7,987 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersIntended Audience :: Information TechnologyIntended Audience :: System AdministratorsOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: System :: Installation/SetupTopic :: System :: Systems AdministrationTopic :: Utilities

Evidence: pyinfra-3.10.0-py3-none-any.whl

Tags

Capabilities
infrastructure as code pythonssh automation pythonserver provisioning pythonconfiguration management pythonagentless deployment tool
Topics
infrastructure-as-codessh-automationprovisioning

Let your AI agent find packages like this

Example. Real query, live index.

An agent finds packages by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language. Give your agent the search over MCP.

More Utilities packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
charset-normalizer Worth it
PyPI · Utilities · released Aug 2026

Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.

permissive licensepure Python · 3.7+
1.7Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
Pygments Worth it
PyPI · Utilities · released Mar 2026

Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.

Install it if you need to display or transform source code.

BSD-2-Clausepure Python · 3.9+
1.3Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.

MITpure Python
1.2Bdownloads / mo

See also spur · ansible · ansible-runner · ansible-base · parallel-ssh · fal · ansible-core · fabric · fabric2 · nornir