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.3.0.tar.gz
(2.1 kB
view hashes)
Built Distribution
Close
Hashes for curry_batch-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a38d1b9686909ef0b16f6617920c313cac77901f622ed69307eac53a60c4da65 |
|
MD5 | 20ef78806e851f8cb17d8b982db77671 |
|
BLAKE2b-256 | 91283ae3e786c2b83452017e9c985ba229d7d0aa86287f16c0baff4e74bb6e90 |