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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e0bb312614dceb35c7becf0d24306cecd946100aaea4be11e8076cd43095267d
|
|
| MD5 |
666209fdd4c2e5cc3c8561f4452e5af2
|
|
| BLAKE2b-256 |
8fe0a6354d8c9707c7e2a1ef84c4c3b25952f6c90c355a5250aa0179e08c782a
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
860916479f2eb58bec282bc9cfe456a7a25f7ef63690b805a28378f7c41221d5
|
|
| MD5 |
5ee200b38f5e102c6f963cb61b7553d6
|
|
| BLAKE2b-256 |
2725b9c588041bb2f0035630fbd164c0e343cc403c8c33f0b8da7668446a5ce7
|