PyInfra: Infrastructure Deserves Real Code in Python, Not YAML Soup
marp.kalvad.com·18h·
Discuss: Hacker News
Preview
Report Post

SCRIPT: "PyInfra isn’t just a CLI - it’s a library. Embed it in Django, FastAPI, anywhere."

SCRIPT: "It’s just Python. Pull inventory from Terraform, add deploy freezes, block Friday deploys - all standard Python."

SCRIPT: "PyInfra versus Ansible. Let’s count the ways..."

SCRIPT: "Up to 10x faster. SSH multiplexing, parallel execution, direct shell commands."

SCRIPT: "18 lines of YAML to install 3 packages."

SCRIPT: "PyInfra: 6 lines. Import, call a function, done."

SCRIPT: "Conditional logic: Jinja2 in YAML vs a ternary expression."

SCRIPT: "Loops. In Ansible: with_items, with_dict, with_file, with_nested... In Python: for loop."

SCRIPT: "In PyInfra: a for loop. The one you learned in week 1 of Python."

SCRIPT: "Debugging: -vvvv and scr…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help