sh: Python Subprocess Replacement

JSON →
library 2.2.2 ·python
verified Jun 9, 2026 install

sh is a full-fledged subprocess replacement for Python (3.8 - 3.12) that allows you to call any program on your system as if it were a function. It dynamically resolves programs from your `$PATH`, similar to Bash, and wraps them in callable Python functions, offering an intuitive way to write shell scripts in Python. The current version is 2.2.2, and it maintains an active release cadence with regular bug fixes and minor feature additions.

total hits 18
actors 6 distinct systems
last hit 7d ago AhrefsBot
Amazonbot
4
MetaBot
4
Script
2
Search engines
1
Humans
2

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany · 🇫🇷 France · 🇬🇧 United Kingdom