{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/17"}],"enrichment":{"capability":"Multiplexes subprocess stdout/stderr to multiple destinations simultaneously, letting you capture output to a pipe while also displaying it in real-time or logging to files.","skillfed_tags":["subprocess-utilities","process-io"],"use_cases":["Run a build or test command (make, pytest) and capture full output while showing progress in real-time on the terminal.","Log subprocess output to a file while simultaneously displaying it to the user, for debugging long-running processes.","Capture output silently (tee to DEVNULL and PIPE) for programmatic inspection without terminal noise.","Multiplex both stdout and stderr to separate log files and the console in a single Popen call.","Integrate subprocess output capture into a training or data pipeline where you need both real-time feedback and recorded logs."],"what_it_does":"subprocess-multitee solves the standard library's either-or problem: subprocess.Popen forces you to choose between capturing output (stdout=PIPE) or displaying it (stdout=sys.stdout), but not both. This package provides a tee() function that creates a pipe spawning a background thread to read and write to multiple destinations in real-time, plus a Popen subclass that integrates cleanly with the tee primitive.\n\nYou pass tee() any combination of PIPE, DEVNULL, file objects, or file descriptors as destinations. The library handles the threading and I/O multiplexing, so you can simultaneously capture output, print to the terminal, and log to files\u2014all from a single subprocess invocation. It works with the standard subprocess.run(), call(), check_call(), and check_output() functions via drop-in replacements, or directly with the enhanced Popen class.","worth_installing":"Yes. The package solves a genuine subprocess limitation with a clean, composable API, has no dependencies, low install friction, and is actively maintained. The only caveat is verifying the actual license before use\u2014the description mentions MIT but the fact sheet marks it unclear."},"id":"subprocess-multitee","links":{"html":"https://skillfed.io/packages/subprocess-multitee","md":"https://skillfed.io/packages/subprocess-multitee.md","pypi":"https://pypi.org/project/subprocess-multitee/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-12-14","license_spdx":null,"license_treatment":"unclear","name":"subprocess-multitee","python_support":"supports_current","summary":"A small `tee` function for splitting stdout/stderr in subprocess, and a `subprocess.Popen` convenience wrapper"},"popularity":{"monthly_downloads":88501,"position":13724,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.2.1"}
