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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

capturing_process-1.0.2-py2.py3-none-any.whl (4.4 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: capturing_process-1.0.2.tar.gz
  • Upload date:
  • Size: 4.5 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.2.tar.gz
Algorithm Hash digest
SHA256 48880a458de9ef929d1422fc7380786fa5a423dba40e47be6104544a37081de0
MD5 ddbcf68a4cfda7b5ede27b76f2ab99eb
BLAKE2b-256 d294dcc047a4e2538b85455aff0cc35b265137216fbf620c946625bb4f4a0e16

See more details on using hashes here.

File details

Details for the file capturing_process-1.0.2-py2.py3-none-any.whl.

File metadata

  • Download URL: capturing_process-1.0.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 2, Python 3
  • 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.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8824a58a5f31ca1abf677c70b5587042fbc97e7d4bd7d988b9c1115550b87a7e
MD5 940d1eb70ee469cea1cc6c130d6407df
BLAKE2b-256 5ff579607167a3c1b3c609c958a4ef484ffe00d7a037bd3a91172d0fb3443a85

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