Curry a list of commands passed as arguments with a YAML list of argument lists, then output the command stdout as a new YAML list of lists.
Project description
Curry-batch reads from stdin a YAML list of argument lists and a set of command templates as arguments. It curries the commands with the argument lists, runs them, and captures the outputs, storing them in a new list.
Example:
argument list:
-
- hello
- world
-
- brain
- wash
template filters: "echo {1}" "echo {2}" "echo {1}, {2}!" "echo {1} {2} {1} {2}"
output:
-
- hello
- world
- hello, world!
- hello world hello world
-
- brain
- wash
- brain, wash!
- brain wash brain wash
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
curry_batch-0.4.2.tar.gz
(2.2 kB
view hashes)
Built Distribution
Close
Hashes for curry_batch-0.4.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc72f6d6bf6b256296ecb67df4603e435a36745ca70ec90d334e0a5c7d883ec0 |
|
MD5 | dec98dd12356d6e5c1aa6264d7f5742a |
|
BLAKE2b-256 | cc2d7480f0ab809ac3d7e424b01ade4bd1249f01bb91d251df4692c55568e382 |