Comparison
runs vs sh vs subprocess.run
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
🏃 Run a block of text as a subprocess 🏃
Maintained. Last release 10 months ago. Weaker on release cadence.
$
pip install runsPython subprocess replacement
Maintained. Last release 4 months ago, commits in 5 of the last 26 weeks. Weaker on commit activity.
$
pip install shThe subprocess module extension to run processes.
Likely abandoned. No release or commit for years (last release over 13 years ago).
$
pip install subprocess-runIn short
- subprocess.run looks abandoned: avoid it for new projects.
- sh is the most used: 6.8M downloads a month, 1.5× more than runs.
- sh also has the best Pythie’s Index (67).
- Safe default for a new project: sh.
Side by side
| Metric | runs | sh | subprocess.run |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 54 | Pythie’s Index: 67 | Pythie’s Index: 14 |
| Verdict | Maintained | Maintained | Likely abandoned |
| Downloads / month | 4.5M | 6.8M | 177.2K |
| Downloads, month over month | +10% | +0% | +16% |
| GitHub stars | – | 7.2K | 22 |
| Stars, last 7 days | – | – | – |
| Direct dependents | 7 | 319 | 9 |
| Last release | Feb 3, 2026 | Jul 25, 2026 | Nov 16, 2013 |
| Releases, 12 months | 1 | 6 | 0 |
| Weeks with commits | – | 5 / 26 | 0 / 26 |
| Recent contributors | – | 9 | 1 |
| First release | Nov 2020 | Jun 2012 | Jun 2013 |
| Python versions | 3.10 – 3.14 | 3.10 – 3.14 | 3.3 |
| License | MIT | MIT | BSD-3-Clause |
| Known vulnerabilities | None | None | None |
Bold marks the best value in each row. Pythie’s Index rates maintenance out of 100: how it works.