Wrapper for an external process.
Usable to run a synchronous process or to manage an asynchronous one.
Parameters: args ([str]) – The command line arguments to execute. Same as for
int or None – The returncode of the process. While the process has not finished the returncode is None. After the process is finished, the returncode is retrieved as by Popen.poll().
str or bytes – The content of the standard output of the process after the execution.
str or bytes – The content of the standard error of the process after the execution.
bool – Whether the process was terminated because the timeout expired.
bool – Whether the process was interrupted by a KeyboardInterruption.
bool – Whether the process was started asynchronously.
bool – Whether the process has started.
bool – Whether the process is still running.
bool – Whether the process was completed without errors.
float – The running time in seconds. If the process is alive, it marks the running time up to now. If instead the process is terminated, it marks the running time of the process up to its end.
The underlying output stream of the process.
The underlying error stream of the process.
Generator of lines from the standard output of the process.
Run the process synchronously.
Starts the process asynchronously.
Stops the process.