Skip to main content

logrunner.run([cmd]) wraps subprocess.run([cmd]) to allow continuous output as well as capture of stdout

Project description

Logrunner

logrunner.run([cmd]) wraps subprocess.run([cmd]) to allow continuous output as well as capture of stdout and stderr.

This function is intended for usage in CI and other process monitoring applications where the process outputs need to be written for real-time error tracking and captured for post-processing text analysis.

⚡ Usage

import logrunner

(ret, out, err) = logrunner.run(["echo", "hello"])
# returns (0, "hello", "")

(ret, out, err) = logrunner.run(["ls", "/nonexistentpath"])
# return (1, "", "No such file or directory")

🔧 Building

uv build

🤝 Collaborate with My Project

Please refer to the collaboration guidelines for details.

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

logrunner-0.0.4.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

logrunner-0.0.4-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file logrunner-0.0.4.tar.gz.

File metadata

  • Download URL: logrunner-0.0.4.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.13 {"installer":{"name":"uv","version":"0.9.13"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for logrunner-0.0.4.tar.gz
Algorithm Hash digest
SHA256 e0bb312614dceb35c7becf0d24306cecd946100aaea4be11e8076cd43095267d
MD5 666209fdd4c2e5cc3c8561f4452e5af2
BLAKE2b-256 8fe0a6354d8c9707c7e2a1ef84c4c3b25952f6c90c355a5250aa0179e08c782a

See more details on using hashes here.

File details

Details for the file logrunner-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: logrunner-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.13 {"installer":{"name":"uv","version":"0.9.13"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for logrunner-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 860916479f2eb58bec282bc9cfe456a7a25f7ef63690b805a28378f7c41221d5
MD5 5ee200b38f5e102c6f963cb61b7553d6
BLAKE2b-256 2725b9c588041bb2f0035630fbd164c0e343cc403c8c33f0b8da7668446a5ce7

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