subshell module¶
- subshell.read_output(stream: TextIOBase, timeout=0, block=False)[source]¶
Read and print a line from stream.
- subshell.run(args, timeout=0.3)[source]¶
Run args in a subprocess.
Behaviour¶
- The output is lazy, but can be listed:
list(run(args))
- Real time interaction is handled line by line.
The subprocess stdout is returned by default. The subprocess stind is accessible through a prompt, but only after util.shell_ready_signal is encountered.
Parameters¶
- args: list
arguments for subprocess.Popen
- timeout: float
timeout between