Registry / devops / tee-output

tee-output

JSON →
library0.4.16pypypi✓ verified 79d ago

A utility to tee standard output/standard error from the current process into a logfile while preserving terminal semantics (e.g., breakpoint() works). Current version 0.4.16. Stable release cadence.

pip install tee-output
INSTALL
IMPORT
SIG · TEE-OUTPUT
T
tee-output
devopspythonv0.4.16
Install
1.8s avg
Import
Disk
17MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.4.16 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 18.5MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.8s · import 0.000s · 19MB
17MB installed
● package 17MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Tee
from tee_output import Tee
from tee_output import TeeOutput

Basic example: tee stdout/stderr to a file while preserving terminal interaction.

import logging from tee_output import TeeOutput logging.basicConfig(stream=open('app.log', 'w'), level=logging.INFO) tee = TeeOutput('app.log') tee.start() print('Hello, tee!') logging.info('This goes to both console and file.') tee.stop()
tee-output --version
Debug
Known issues
gotchaCall `start()` before output is generated; otherwise output before start is not captured.
fix
Ensure `tee.start()` is called at the very beginning of the script, before any print or logging.
affects: all
gotchaDo not forget to call `stop()` to restore original stdout/stderr; otherwise residual buffering may occur.
fix
Always call `tee.stop()` after teeing is done, or use it as a context manager.
affects: all
deprecatedThe `add_logging_level` function is deprecated in favor of standard logging.setLevel.
fix
Use `logging.getLogger().setLevel(logging.TRACE)` or define custom level via `logging.addLevelName()`.
affects: >=0.4.0
Upgrade
Version history
0.4.16latest on PyPI · released Aug 17, 2023
Audit
Dependencies

No dependency data recorded yet.

Agent activity
40 hits · last 30 days
node
36
OpenAI (training)
1
Resources
tee-output — pip install tee-output · libregistry