Skip to main content

Captures stderr/stdout as a stream to allow easy log monitoring of long running shell processes.",

Project description

Finally, a subprocess type that streams out stdout/stderr easily

Capturing the stderr AND stdout from a process in python is not that easy. This class makes this capturing much easier by delegating the line capturing to seperate threads. This capture can be totally in memory or can optionally be streamed to a output stream such as a file handle.

Python version: 3.6+

Because of the use of type annotations, this library is not compatible with python 2.7 However you are free to strip out these type annotations and this project should work pretty well.

TODO

  • Make writing supplied streams something that happens only on the main thread.

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

capturing_process-1.0.0.tar.gz (4.6 kB view details)

Uploaded Source

File details

Details for the file capturing_process-1.0.0.tar.gz.

File metadata

  • Download URL: capturing_process-1.0.0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 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 capturing_process-1.0.0.tar.gz
Algorithm Hash digest
SHA256 5ec1ebe79b3550ad9a11b7132a9e0f573b0783da58d9e071ddf61316e20db115
MD5 bc543e274777156c6e399892d1068be3
BLAKE2b-256 7b9786f337050ca0c9f644b5524b944bfc6e6b6fdc326e7ce523482469ad945d

See more details on using hashes here.

Supported by

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