# PyInfra

30 Hacker News commenters recommended PyInfra and 4 criticized it, November 2025 to November 2026. It was recommended in 7 of 13 months. It meets the Hacker Approved badge rule.

**Verdict:** Recommended as a plain-Python alternative to Ansible, with users finding its code easier to read and maintain. Critics say it is missing some configuration features.

## Why people recommend it

- Plain Python instead of YAML (6 comments): "Pyinfra is what ansible should have been. It's straight python rather than a janky mix of yaml, templates, and bolted-on control flow primitives." ([source](https://news.ycombinator.com/item?id=48008869)) "at this point you are better served with plain python which I think is where pyinfra should shine" ([source](https://news.ycombinator.com/item?id=48009737)) "For anything dynamic and sufficiently complicated, ansible is horrible. Pyinfra is much better." ([source](https://news.ycombinator.com/item?id=48011634))
- Easier to follow than Ansible (4 comments): "after years of ansible et al, pyinfra is an absolute breath of fresh air" ([source](https://news.ycombinator.com/item?id=46584370)) "I found the docs, syntax and usage patterns much easier to get on with." ([source](https://news.ycombinator.com/item?id=48008812)) "I should have gone with pyinfra with my current job's project" ([source](https://news.ycombinator.com/item?id=48120106))
- Good UX and IDE support (3 comments): "its not just fast, it's more Pythonic, so IDE features actually work" ([source](https://news.ycombinator.com/item?id=48009158)) "this looks great from a UX perspective compared to those other tools" ([source](https://news.ycombinator.com/item?id=48010860)) "nice project, reminds me a lot of Fabric but a bit more refined" ([source](https://news.ycombinator.com/item?id=48017679))
- Simple to set up (2 comments): "found it straightforward enough... just an epsilon above a pile of bash scripts" ([source](https://news.ycombinator.com/item?id=48933192)) "So easy to setup and maintain." ([source](https://news.ycombinator.com/item?id=48018180))

## What people warn about

- Missing some configuration features (1 comments): "it is missing a number of configuration things that are oretty important" ([source](https://news.ycombinator.com/item?id=48565707))

## Alternatives hackers recommend

- [Ansible](https://hackerapproved.com/p/ansible.md): 120 recommend
- [Puppet](https://hackerapproved.com/p/puppet.md): 16 recommend
- [Progress Chef](https://hackerapproved.com/p/chef.md): 10 recommend
- [Salt](https://hackerapproved.com/p/salt.md): 9 recommend

## Cite as

Hacker Approved, "PyInfra", https://hackerapproved.com/p/pyinfra/ (counts from 1,795,640 Hacker News comments, November 2025 to November 2026).
