{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/2"},{"label":"Systems Administration","url":"https://skillfed.io/packages/category/system-systems-administration"}],"enrichment":{"capability":"A drop-in replacement for subprocess.run that captures output while printing it in real-time, similar to the Unix tee command.","skillfed_tags":["subprocess-wrapper","process-monitoring"],"use_cases":["Monitor progress of build scripts or CI/CD pipelines while capturing logs for debugging.","Run installation or deployment commands and display output in real-time while saving it to a file.","Execute long-running tests or data processing jobs with live console feedback and complete output capture.","Stream command output for user feedback while preserving it for post-execution analysis.","Replace standard subprocess in existing tools to add real-time visibility without refactoring."],"what_it_does":"subprocess-tee wraps Python's standard subprocess module to solve a common problem: you want to see what a long-running command is doing in real-time, but you also need to capture its output for later use. It does both simultaneously by printing to the console while collecting stdout and stderr into the result object, mimicking the Unix tee utility. The package works on POSIX systems (Linux, macOS) and treats all output as text by default, which differs from the standard subprocess module.\n\nThe implementation is straightforward: import from subprocess-tee instead of subprocess, call it the same way, and get both live feedback and captured output. You can disable the tee behavior with tee=False if needed, and use check=True to raise exceptions on non-zero exit codes, just like the standard library version.","worth_installing":"Yes. The package solves a genuine pain point with zero dependencies, permissive licensing, active maintenance, and a simple API that drops into existing code. It ranks in the top 5000 PyPI packages by download volume and has no known vulnerabilities. Install it if you run subprocesses and want real-time feedback without losing the captured output."},"id":"subprocess-tee","links":{"html":"https://skillfed.io/packages/subprocess-tee","md":"https://skillfed.io/packages/subprocess-tee.md","pypi":"https://pypi.org/project/subprocess-tee/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2024-06-17","license_spdx":null,"license_treatment":"permissive","name":"subprocess-tee","python_support":"supports_current","summary":"subprocess-tee"},"popularity":{"monthly_downloads":5999958,"position":1990,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.4.2"}
