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.2.0.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

subprocess_tee-0.2.0-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: subprocess-tee-0.2.0.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6

File hashes

Hashes for subprocess-tee-0.2.0.tar.gz
Algorithm Hash digest
SHA256 8374dfdb1bd6e64278afa67be41f13772b677ae768b523550060fe41d8274faa
MD5 f3ee3b413c1bfa84f93583752c512bb3
BLAKE2b-256 333b288c8bf421760149b9383f76b8704731c8742ca4ba9f39979209ab26e898

See more details on using hashes here.

File details

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

File metadata

  • Download URL: subprocess_tee-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6

File hashes

Hashes for subprocess_tee-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f748b5a998f70de1fe2ff5b4d3e28f8671149cb33a3ff90537db26b90122881d
MD5 82ee039af8123ba2e1f9cde4b094c269
BLAKE2b-256 7a2f46c83c864a31926b17fa152f95a227cb84ce05886ad3815c7cba79e1fb6b

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