Skip to main content

tee-logfile

Small Python utility to duplicate process output to a logfile while preserving console output (similar to Unix tee).

Features

  • Mirror stdout (and optionally stderr) to a file and the console.
  • Lightweight and easy to integrate into scripts or pipelines.
  • Designed for use on macOS and other Unix-like systems.

Requirements

  • Python 3.9+

Installation

pip install tee-logfile

Usage

from tee_logfile import Tee

with Tee.context('/path/to/output.log'):
    my_cli_code_to_run()

Development

release

poetry version minor
tox -e release
pip install ~/projects/sandbox/tee-logfile

Metadata

Release files for tee-logfile 0.3.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tee-logfile 0.3.9
File Size Uploaded Provenance Actions
tee_logfile-0.3.9.tar.gz 1.5 kB Without provenance Details for tee_logfile-0.3.9.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tee-logfile 0.3.9
File Interpreter ABI Platform Actions
tee_logfile-0.3.9-py3-none-any.whl Python 3 none any Details for tee_logfile-0.3.9-py3-none-any.whl

Total release size: 3.7 kB

Release files / tee_logfile-0.3.9.tar.gz

Download URL tee_logfile-0.3.9.tar.gz
Size 1.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f6001ff1e0ed5b043fc319b88cfdf270df5b13a42dda79d4a419bae83e6cca8e
BLAKE2b-256 checksum
How to use checksums
73c9b55287234fbef878916de3c72674affa033245c07b503545af0c00044e2b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.11.13 Darwin/24.6.0

Release files / tee_logfile-0.3.9-py3-none-any.whl

Download URL tee_logfile-0.3.9-py3-none-any.whl
Size 2.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
56c2c18faf4ba12157ec58a4075507146f5f73b11bed0b4682bc76c3a0e49d98
BLAKE2b-256 checksum
How to use checksums
08704ab8f939f231a5c837d0a63023dbfb2c65ebdbfbdd6ebdb1864a6032c6f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.11.13 Darwin/24.6.0

Security for tee-logfile 0.3.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page