subprocess-tee
subprocess-tee
Decision gist · record as of 2026-08-14
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.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.8 or later; universal_newlines=True is implied (text mode only).
- Low install friction with no runtime dependencies.
- Actively maintained with recent commits; last release was 2024-06-17 and the repository remains active.
License · maintenance · safety
MIT (permissive) — MIT license is permissive, allowing free use, modification, and distribution with minimal restrictions.
last release 2024-06-17 (788 days) · last repo commit 2026-08-03 · 63 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 5,999,958 downloads/mo, #1,990 on PyPI
Alternatives
Verify before relying
pip install subprocess-tee
from subprocess_tee import run
result = run("echo 123")
print(result.stdout)- Whether asyncio support mentioned in keywords is available via a separate API or integrated into the main run function.
- Performance characteristics when handling very large output streams.
- Behavior differences from subprocess.run beyond output capture (e.g., timeout handling, signal behavior).
What it is and 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.
The 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.
Use it for
- 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.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
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.
Install
subprocess-tee on PyPI
Before you install
Low install friction with no runtime dependencies. Actively maintained with recent commits; last release was 2024-06-17 and the repository remains active.
Requires Python 3.8 or later; universal_newlines=True is implied (text mode only).
License in practice
MIT license is permissive, allowing free use, modification, and distribution with minimal restrictions.
Quickstart
pip install subprocess-tee
from subprocess_tee import run
result = run("echo 123")
print(result.stdout)
Verify before relying
- Whether asyncio support mentioned in keywords is available via a separate API or integrated into the main run function.
- Performance characteristics when handling very large output streams.
- Behavior differences from subprocess.run beyond output capture (e.g., timeout handling, signal behavior).
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 788 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 5,999,958 / month, #1,990 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersIntended Audience :: Information TechnologyIntended Audience :: System AdministratorsLicense :: OSI Approved :: MIT LicenseOperating System :: MacOSOperating System :: POSIXOperating System :: POSIX :: LinuxProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: System :: Systems AdministrationTopic :: Utilities |
Evidence: subprocess_tee-0.4.2-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “subprocess output capture and print”
- subprocess-teeA drop-in replacement for subprocess.run that captures output while…
- subprocess-multiteeMultiplexes subprocess stdout/stderr to multiple destinations…
- fancy-subprocessRuns shell commands with formatted output, detailed error reporting,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Utilities packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
See also scripttest · subprocess-multitee · subprocess.run · tendo · fancy-subprocess · runs · sh · EasyProcess · runez · wurlitzer