Example usage: Dict[str: List[Tuple]]
process = PrettyPopen(args={"python3 run_file.py": [
("--arg1", 1),
("--arg2", 2),
("--arg3", 3),
("--arg4", 4),
* * *
("--argN", N),
("--arg_clean",)]}, **kwargs)
stderr, stdout = process.communicate()
# MEANT TO REPLACE
process = Popen("python3 run_file.py --arg1 1 --arg2 2 --arg3 3 --arg4 4 * * * --argN N --arg_clean", **kwargs)
stderr, stdout = process.communicate()
To install run:
pip install git+https://github.com/tevops/pretty-popen.git