cparrun - combinated parallel run of something as multiple processes
Project description
cparrun
cparrun - combinated parallel run of something as multiple processes (as many as you want and restricted by timeout) Could be used as python module or command line utility. Command line utility mode could interpret arguments as multiple combinations or run in parallel set of lines from stdin as shell commands.
Output results are in JSON format with separated stdout, stderr, return code, status.
USAGE EXAMPLES:
this example makes 3x3x3=27 combinations and just print them
cparrun --parallel=8 --dry-run -- "dig -t %['NS', 'SOA', 'MX']% %['google.com', 'gmail.com', 'facebook.com']% %['@1.1.1.1', '@8.8.8.8', @'nonexistingdomain.somedomain.']% +short"
request DNS in parallel. this example makes 3x3x3=27 combinations and run them. Output results is JSON
cparrun --parallel=8 -- "dig -t %['NS', 'SOA', 'MX']% %['google.com', 'gmail.com', 'facebook.com']% %['@1.1.1.1', '@8.8.8.8', @'nonexistingdomain.somedomain.']% +short"
send of list of everything to run to stdin, JSON results are filtered by jq utility
echo 'ping -c2 8.8.8.8 sleep 10 curl -s google.com wget nonexistentdomain.com123 host example.com host example2.com ' | cparrun --stdin --timeout=2 | jq '.[] | select(.status | contains("ERROR"))'
simple stdin example from file
cat commands.txt | cparrun --stdin --parallel=50 --timeout=5
other examples
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 cparrun-2026.1.0.tar.gz.
File metadata
- Download URL: cparrun-2026.1.0.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee48ef499ff8c9fff4fcc8b8be3cc5f2ff09010520f88f309182b9f6600715ed
|
|
| MD5 |
807ec9d401930ccd9f0e51feec616268
|
|
| BLAKE2b-256 |
d86e67016a438e3188692ee1c2c51b90ee89951b8a264e0b75e406df0d3fa8a2
|
File details
Details for the file cparrun-2026.1.0-py3-none-any.whl.
File metadata
- Download URL: cparrun-2026.1.0-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08d552b06c0dd748b198b08d6418e5fd9dbf6ef53d23ab197bfca9b787347512
|
|
| MD5 |
af3a3cf25289c5caf5aa5ada2bbaf81b
|
|
| BLAKE2b-256 |
d440f8a1ba7550ebc470e67b5bbfde1644a753ce3061c101ba10d878a2a5bf5a
|