Versatile utility function to run external processes
Project description
ProcRunner
Versatile utility function to run external processes
Free software: BSD license
Documentation: https://procrunner.readthedocs.io.
Features
runs an external process and waits for it to finish
does not deadlock, no matter the process stdout/stderr output behaviour
returns the exit code, stdout, stderr (separately), and the total process runtime as a dictionary
process can run in a custom environment, either as a modification of the current environment or in a new environment from scratch
stdin can be fed to the process, the returned dictionary contains information how much was read by the process
stdout and stderr is printed by default, can be disabled
stdout and stderr can be passed to any arbitrary function for live processing
optionally enforces a time limit on the process
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
0.3.0
run_process() renamed to run()
Python3 compatibility fixes
0.2.0 (2018-03-12)
Procrunner is now Python3 3.3-3.6 compatible.
0.1.0 (2018-03-12)
First release on PyPI.
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
File details
Details for the file procrunner-0.3.0.tar.gz
.
File metadata
- Download URL: procrunner-0.3.0.tar.gz
- Upload date:
- Size: 14.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77ed2f5945611f38d15bc4222cdeacdd2eba1302715b64e556e42a6a3a7187be |
|
MD5 | 768b577b09d1324a84eb100fddfd18be |
|
BLAKE2b-256 | a0989c3c2029db0417549756930d0e053b3a3069ad277f57f8ca3a198bc110f9 |
File details
Details for the file procrunner-0.3.0-py2.py3-none-any.whl
.
File metadata
- Download URL: procrunner-0.3.0-py2.py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d6c23a52443fbd44f6b6c9dfbb4ad529eefc937fb0a763d047e9e0f89411035 |
|
MD5 | b92fbf0410623b03c9765d98cf4e80f9 |
|
BLAKE2b-256 | e3f07af93957cd133286f07f1ee13b4b67b5ec85cc701ada61f4bba63b6ca73b |