amoffat/sh
Python process launching observed · 2026-08-28
Health v2 · maintenance only
96/100
- Activity 94
- Release rhythm 95
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 1
- age_days: 5344
- days_rel: 39
- days_push: 39
- n_releases_24m: 10
Adoption not part of the score
7242 stars · 504 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
sh is a Python library that replaces the subprocess module, letting you call any external program as if it were a Python function. It works only on Unix-like operating systems (Linux, macOS, BSDs) and supports Python 3.10-3.14 and PyPy.
Use cases
- run shell commands from python
- subprocess replacement with cleaner api
- call git or other cli tools from python scripts
- automate command-line workflows in python
- capture output of external programs
When to choose
- you want a pythonic, function-call syntax for external commands instead of subprocess boilerplate
- your code runs on Linux, macOS, or BSD
- you need piping, background execution, or output handling for shell commands
When to avoid
- you need Windows support - sh explicitly does not support it
- you only need a simple one-off subprocess call and want zero dependencies
- you need to run commands on remote machines rather than locally
Facets
library · maturity active
developer-tools cli concurrency developer-tools python cli subprocess process-launching shell-commands unix-only api-wrapper command-line automation linux macos
2 sources
- readme: https://github.com/amoffat/sh · fetched 2026-08-28 · 343dc9483e5e
- registry_pypi: https://pypi.org/pypi/sh/json · fetched 2026-08-29 · ed1a7a86ca87
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| amoffat/sh | main | 96 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem