Syspy is a convient library for spinning up command line tools in python
python3 -m pytest
python3 -m pip install -i https://test.pypi.org/simple/ syspy
python3 -m pip install --upgrade -i https://test.pypi.org/simple/ syspy
simply run the following in any python3 script:
from syspy import Shell
from syspy.tools import getInputs, parseOptions