Comparison
sh vs subprocess.run
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Python 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, 38× more than subprocess.run.
- sh also has the best Pythie’s Index (67).
- Safe default for a new project: sh.
Side by side
| Metric | sh | subprocess.run |
|---|---|---|
| Pythie’s Index | Pythie’s Index: 67 | Pythie’s Index: 14 |
| Verdict | Maintained | Likely abandoned |
| Downloads / month | 6.8M | 177.2K |
| Downloads, month over month | +0% | +16% |
| GitHub stars | 7.2K | 22 |
| Stars, last 7 days | – | – |
| Direct dependents | 319 | 9 |
| Last release | Jul 25, 2026 | Nov 16, 2013 |
| Releases, 12 months | 6 | 0 |
| Weeks with commits | 5 / 26 | 0 / 26 |
| Recent contributors | 9 | 1 |
| First release | Jun 2012 | Jun 2013 |
| Python versions | 3.10 – 3.14 | 3.3 |
| License | MIT | BSD-3-Clause |
| Known vulnerabilities | None | None |
Bold marks the best value in each row. Pythie’s Index rates maintenance out of 100: how it works.