OpenBSD Handbook

Current snapshot · amd64 · Generated 2026-09-09

py3-sh-2.2.4p0

subprocess interface: call any program like a function

Back to search · Project homepage

Description

sh is a full-fledged subprocess replacement for Python that allows you to call any program as if it were a function: from sh import ifconfig print(ifconfig("eth0")) sh is not a collection of system commands implemented in Python. sh relies on various Unix system calls and only works on Unix-like operating systems - Linux, macOS, BSDs etc. Specifically, Windows is not supported.

Package information

Ports path
devel/py-sh
Package architecture
amd64
Maintainer
The OpenBSD ports mailing-list <ports@openbsd.org>
Categories
devel, lang/python
Available flavors
None listed
Only for architectures
aarch64, amd64, arm, i386, mips64, mips64el, powerpc, powerpc64, riscv64, sparc64, alpha, hppa

These are ports metadata. Binary availability depends on the release, architecture and mirror. Build and test dependencies are not an installation checklist.

Direct dependencies

Runtime

Build

Test

Used by (2 dependency relationships)

Includes library, runtime, build and test relationships. Results load 100 at a time.

Installing and updating packages · Package details as JSON