subprocess interface: call any program like a function
Project homepage: https://github.com/amoffat/sh
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
Ports list build and test dependencies as well as runtime dependencies. pkg_add selects those needed for installation.
Direct dependencies
Runtime
Build
- lang/python/3
- devel/py-build
- devel/py-installer
- devel/py-poetry-core py3-poetry-core->=2.2.0
Test
- devel/py-sh py3-sh-2.2.4p0
- lang/python/3
- devel/py-test
Used by (2 dependency relationships)
Includes library, runtime, build and test dependencies.