Skip to main content

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

https://github.com/itledevs/cparrun/wiki

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

cparrun-2026.1.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

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

cparrun-2026.1.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

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

Hashes for cparrun-2026.1.0.tar.gz
Algorithm Hash digest
SHA256 ee48ef499ff8c9fff4fcc8b8be3cc5f2ff09010520f88f309182b9f6600715ed
MD5 807ec9d401930ccd9f0e51feec616268
BLAKE2b-256 d86e67016a438e3188692ee1c2c51b90ee89951b8a264e0b75e406df0d3fa8a2

See more details on using hashes here.

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

Hashes for cparrun-2026.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 08d552b06c0dd748b198b08d6418e5fd9dbf6ef53d23ab197bfca9b787347512
MD5 af3a3cf25289c5caf5aa5ada2bbaf81b
BLAKE2b-256 d440f8a1ba7550ebc470e67b5bbfde1644a753ce3061c101ba10d878a2a5bf5a

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