A Shell class to exectue shell commands as object methods.
pip install bpyshell
Import
from pyshell.core import *
Create a shell object
sh = Shell()
Call shell commands as object methods
print(sh.ls())
Use the flags
kwarg for single dash arguments
print(sh.ls('.giti*', flags='a'))
Use kwargs for double dash arguments
print(sh.du('.', max_depth=0))
You can use tab to autocomplete:
If there is a man page, it becomes the method's docstring
Each command is executed as a different process.