python3-procrunner

Versatile utility function to run external processes from Python

Description

Versatile utility function to run external processes from Python, with many features:
 * runs an external process and waits for it to finish
 * does not deadlock, no matter the process stdout/stderr output
   behaviour
 * returns the exit code, stdout, stderr (separately, both as
   bytestrings), and the total process runtime as a dictionary
 * process can run in a custom environment, either as a modification
   of the current environment or in a new environment from scratch
 * stdin can be fed to the process, the returned dictionary contains
   information how much was read by the process
 * stdout and stderr is printed by default, can be disabled
 * stdout and stderr can be passed to any arbitrary function for live
   processing (separately, both as unicode strings)
 * optionally enforces a time limit on the process

Upload more screenshots

Please help extend the collection of screenshots. Just make a screenshot and upload it here. You don't need to register or anything.

Upload a screenshot

Hint: upload an image here from your clipboard with Ctrl-V


Homepage

https://github.com/DiamondLightSource/python-procrunner


Install this software package

If the package is available for the distribution you are currently using on your computer then install the software by clicking on…

Install python3-procrunner