subprocess-manager
Description
A wrapper around python’s subprocess module which handles new process spawning (optionally as a daemon), specifying a timeout period, and printing/logging/accessing the process’ output in a non-blocking fashion.
Installation
pip install subprocess_manager
Usage
from subprocess_manager.run_subprocess import run_subprocess
process, execution_time = run_subprocess('/bin/bash', ['-l', '-c', 'echo "Hello World!"')
tail_process, command_starttime, command_process_stdout, command_process_stderr = run_subprocess('/bin/bash', ['-l', '-c', 'tail process.log', daemon=True, return_std=True)
See subprocess_manager/run_subprocess.py for additional arguments and details.
Metadata
Release files for subprocess_manager 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| subprocess_manager-0.1.2.tar.gz | 4.8 kB | Without provenance | Details |
Release files / subprocess_manager-0.1.2.tar.gz
| Download URL | subprocess_manager-0.1.2.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a2f3cd41299705b1bd29e6c859bb53eb4ee18370dce3d7313e91630124d8feaf
|
|
BLAKE2b-256 checksum How to use checksums |
9b6c691643aa61bcb9a829fafc67ba41c4db020d5fa0e37fe262a85fc63a2dcc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for subprocess_manager 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.