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-bp155.2.11 info | GA Release | 2023-05-22 | 15 SP5 |
|
|
1.12.14-bp154.1.41 info | GA Release | 2022-05-09 | 15 SP4 |
|
|
1.12.14-bp153.1.15 info | GA Release | 2021-03-06 | 15 SP3 |
|
|
1.12.14-bp152.5.1 info | GA Release | 2020-04-28 | 15 SP2 |
|
|
1.12.14-bp151.3.1 info | GA Release | 2019-07-16 | 15 SP1 |
|
|
1.12.14-bp151.2.10 info | GA Release | 2019-05-18 | 15 SP1 |
|
|
1.12.14-bp150.2.5 info | GA Release | 2018-07-30 | 15 |
|
|
1.12.14-bp150.2.4 info | GA Release | 2018-07-30 | 15 |
|
|