subprocessPIPE
subprocess.PIPE is a sentinel value in the Python standard library's subprocess module used to request the creation of a new pipe to a child process. It connects the parent process to one or more of the child’s standard streams (stdin, stdout, and stderr) so that input can be supplied or output captured programmatically. The constant is defined in the module as -1 and is portable across platforms, including Windows and Unix-like systems.
Common usage involves passing PIPE as the value for one or more of the stream parameters when
A typical pattern is to start a process and read its output using the communicate method, which
Common caveats include the potential for deadlocks if a subprocess produces more data than can be consumed