sh is a full-fledged subprocess replacement for Python 2.6 - 3.6, PyPy and PyPy3 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.
Package Version | Update ID | Released | Package Hub Version | Platforms | Subpackages |
---|---|---|---|---|---|
1.12.14-bp156.1.1 info | GA Release | 2024-02-21 | 15 SP6 |
|
|