Skip to main content

subprocess-tee

Project description

subprocess-tee

This package provides an drop-in alternative to subprocess.run that captures the output while still printing it in real time, just the way tee does.

Printing output in real-time while still capturing is important for any tool that executes long running child processes, as you may not want to deprive user from getting instant feedback related to what is happening.

# from subprocess import run
from subprocess_tee import run

result = run("echo 123")
result.stdout == "123\n"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

subprocess-tee-0.3.0.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

subprocess_tee-0.3.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file subprocess-tee-0.3.0.tar.gz.

File metadata

  • Download URL: subprocess-tee-0.3.0.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for subprocess-tee-0.3.0.tar.gz
Algorithm Hash digest
SHA256 673a832a2a0a1e635ecf1b68673d16e838e945aa953af04aaf8a22b1e9f92ae8
MD5 b815f81c2eee7c0653e64c138c3e2aab
BLAKE2b-256 ae6ee4f5377f8f09332a90283a5c90d7a48714d66b1d587acc7b2c1d865aa64f

See more details on using hashes here.

File details

Details for the file subprocess_tee-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: subprocess_tee-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for subprocess_tee-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0e9e3f9c1365976397eacfe45a59abeb4497b385491e9d9530988648f90d76c7
MD5 a5afcb6976376d155aabc8a8139cbb7c
BLAKE2b-256 91b0475958a9c356442730c263a40f0e637dcea7046f7360696c34d09ebe93bd

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page