BSD Ports

devel/py-sh 2.4.0 OpenBSD

subprocess interface: call any program like a function

System
OpenBSD
Repository
OpenBSD ports
Maintainer
The OpenBSD ports mailing-list <[email protected]>
Last update
Commit
b2fd1e0c53
Categories
devel, lang/python

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.

In the other systems

SystemPortVersion
OpenBSDdevel/py-sh2.4.0
FreeBSDdevel/py-sh2.4.0
DragonFlydevel/py-sh2.2.2
HardenedBSDdevel/py-sh2.4.0
GhostBSDdevel/py-sh2.4.0

Install

Binary package:

pkg_add py3-sh

From the ports tree:

cd /usr/ports/devel/py-sh && make install

Dependencies

Build dependencies 4
Run dependencies 1

No port depends on this one.

Commit history 2

DateCommitCreditsLog message
b2fd1e0c53 sthen update to py3-sh-2.4.0
3f059e808a sthen drop @pkgpath/@conflict markers previously used for updates from 7.0/7.1