# amoffat/sh

Python process launching

Repository: https://github.com/amoffat/sh
Canonical: https://ross.abutalabs.com/products/amoffat-sh
Homepage: https://sh.readthedocs.io/en/latest/
Language: Python
License: MIT
License Family: permissive
Topics: python, subprocess, devops
Last push: 2026-07-25T21:44:20+00:00

## Health v2 (maintenance only)
Score: 96/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 94, release rhythm 95, longevity 100
- inputs: {"age_days": 5344, "days_push": 39, "days_rel": 39, "gap_med": 1, "n_releases_24m": 10}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 7242, forks 504 (observed 2026-08-28T04:09:57.736877+00:00)

## What it is
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
- artifact type: library
- maturity: active
- function: developer-tools, cli, concurrency
- domain: developer-tools
- platform: python, cli
- tags: subprocess, process-launching, shell-commands, unix-only, api-wrapper, command-line, automation, linux, macos

## Member repositories
- amoffat/sh (main) score 96

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:57.736877+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:39:45.002056+00:00, confidence not recorded.
  - readme: https://github.com/amoffat/sh (fetched 2026-08-28T04:09:57.736877+00:00, sha 343dc9483e5e)
  - registry_pypi: https://pypi.org/pypi/sh/json (fetched 2026-08-29T08:34:58.177474+00:00, sha ed1a7a86ca87)
- Data as of 2026-08-30T08:39:29.467469+00:00.
