Description
Runs a subprocess while streaming output to the terminal and still capturing it for later use, similar to the tee command. It helps Python build tools, test runners, and automation show live progress without losing logs.
Developers use it as a library. Because it executes external commands, validate command arguments carefully and avoid running untrusted input in automation.