tee

Classes

TeeStream(*ostreams[, encoding, buffering])

capture_output([output, capture_fd])

Context manager to capture output sent to sys.stdout and sys.stderr

redirect_fd([fd, output, synchronize])

Redirect a file descriptor to a new file or file descriptor.