[ 源代码: python-sh ]
软件包:python3-sh(2.0.7-1)
Python 3 subprocess interface
sh (previously pbs) is a full-fledged subprocess replacement 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.