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
| System | Port | Version |
|---|---|---|
| OpenBSD | devel/py-sh | 2.4.0 |
| FreeBSD | devel/py-sh | 2.4.0 |
| DragonFly | devel/py-sh | 2.2.2 |
| HardenedBSD | devel/py-sh | 2.4.0 |
| GhostBSD | devel/py-sh | 2.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.