PyInfra
Hacker ApprovedRanked 2 of 5 configuration management tools by recommenders
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.
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.
34 people gave an opinion
- recommend it
- 30
- criticize it
- 4
- approval share
- 88%
Recommended in 7 of 13 months
- November 2025: not recommended
- December 2025: not recommended
- January 2026: recommended
- February 2026: recommended
- March 2026: not recommended
- April 2026: recommended
- May 2026: recommended
- June 2026: recommended
- July 2026: recommended
- August 2026: recommended
- September 2026: not recommended
- October 2026: not recommended
- November 2026: not recommended (month in progress)
Why it carries the badge
- 30 people recommend itNeeds 10 or more, met.
- 7.5 recommenders for every criticNeeds 2 to 1 or better, met.
- Recommended in 7 of 13 monthsNeeds 4 or more, met.
The same three rules apply to every product, and the badge can’t be bought. How the badge works
What people say about it
The reasons people give, with the number of comments that give each one. Open a reason to read what they said.
Why people recommend it
Each mark is one comment
Plain Python instead of YAML
“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.”
Comment from 4 May 2026 in “PyInfra 3.8.0 Is Out” “at this point you are better served with plain python which I think is where pyinfra should shine”
Comment from 4 May 2026 in “PyInfra 3.8.0 Is Out” “For anything dynamic and sufficiently complicated, ansible is horrible. Pyinfra is much better.”
Comment from 4 May 2026 in “PyInfra 3.8.0 Is Out” - Comment from 5 May 2026 in “PyInfra 3.8.0 Is Out”
- Comment from 4 May 2026 in “PyInfra 3.8.0 Is Out”
- Comment from 4 May 2026 in “PyInfra 3.8.0 Is Out”
Easier to follow than Ansible
“after years of ansible et al, pyinfra is an absolute breath of fresh air”
Comment from 12 Jan 2026 in “Pyinfra: Turns Python code into shell commands and runs them on your servers” “I found the docs, syntax and usage patterns much easier to get on with.”
Comment from 4 May 2026 in “PyInfra 3.8.0 Is Out” “I should have gone with pyinfra with my current job's project”
Comment from 13 May 2026 in “The vi family” - Comment from 4 May 2026 in “PyInfra 3.8.0 Is Out”
Good UX and IDE support
“its not just fast, it's more Pythonic, so IDE features actually work”
Comment from 4 May 2026 in “PyInfra 3.8.0 Is Out” “this looks great from a UX perspective compared to those other tools”
Comment from 4 May 2026 in “PyInfra 3.8.0 Is Out” “nice project, reminds me a lot of Fabric but a bit more refined”
Comment from 5 May 2026 in “PyInfra 3.8.0 Is Out” Simple to set up
“found it straightforward enough... just an epsilon above a pile of bash scripts”
Comment from 16 Jul 2026 in “Rebuilding My Homelab with Compose, Ruby, IPv6, and No Kubernetes” “So easy to setup and maintain.”
Comment from 5 May 2026 in “PyInfra 3.8.0 Is Out”
What people warn about
Each mark is one comment
Missing some configuration features
“it is missing a number of configuration things that are oretty important”
Comment from 17 Jun 2026 in “Pyinfra – agentless infrastructure automation, in plain Python”
Other configuration management tools people recommend
The four most recommended other configuration management tools, with the same counts for each, so you can compare like for like. The tick on each bar marks the 2 to 1 line the badge needs.
| Product | Recommend | Criticize | Approval | Months | Owned | Badge |
|---|---|---|---|---|---|---|
| Ansible | 120 | 71 | 63% | 12 | — | — |
| PyInfraThis page | 30 | 4 | 88% | 7 | — | Approved |
| Puppet | 16 | 15 | 52% | 10 | — | — |
| Progress Chef | 10 | 11 | 48% | 7 | — | — |
| Salt | 9 | 7 | 56% | 7 | — | — |
What people said
34 of the 41 comments that mention it, newest first. Each links to the original comment.
“Not quite the same concept, but I think it accomplishes the same goal for me.”
“found it straightforward enough... just an epsilon above a pile of bash scripts”
“Being able to centralize this config is far more attractive than having a separate Ansible or pyinfra process.”
“it is missing a number of configuration things that are oretty important”
“I should have gone with pyinfra with my current job's project”
“you realize using PyInfra and Pulumi, you can do all of that in just Python”
“The only issue was I had to implement some facts and operations myself that probably were available in some Ansible package but to be honest it was trivial.”
“So easy to setup and maintain.”
“nice project, reminds me a lot of Fabric but a bit more refined”
“Thank You for building and sharing pyInfra.”
“Basically a flaw of the entire model where you write code as if executing a single host which is then executed on many in parallel”
“I anticipate I'll be much happier after the change.”
“For anything dynamic and sufficiently complicated, ansible is horrible. Pyinfra is much better.”
“Just having "home/docker.py" instead of "collections/ansible_collections/home/dev/roles/docker/tasks/main.yml" is reason enough.”
“I found PyInfra to be a great tool for the job at hand”
“this looks great from a UX perspective compared to those other tools”
“pyinfra is just python that gets transpiled into ssh commands”
“I hope more people start using pyInfra.”
“at this point you are better served with plain python which I think is where pyinfra should shine”
“Switched to Pyinfra and the difference is day and night.”
“pyinfra will integrate better with my other code”
“its not just fast, it's more Pythonic, so IDE features actually work”
“pyinfra is very approachable since it has similar concepts”
“based on positive feedback here I'll probs oh give this a shot”
“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.”
“The biggest difference is that Pyinfra is simply Python code.”
“I found the docs, syntax and usage patterns much easier to get on with.”
“it seemed much easier to me and easier to follow”
“It really feels like a dream come true for my usecase.”
“too much complexity for too little gain”
“Pulumi and Pyinfra already provide user-friendly primitives and idempotent(ish) APIs”
“Tools like these are profesional best practices these days.”
“I sponsor this project as I want it to succeed”
“after years of ansible et al, pyinfra is an absolute breath of fresh air”
Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.