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.1.0.tar.gz
(1.6 kB
view hashes)
Built Distribution
Close
Hashes for curry_batch-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4979b83c531573ecdc37af522084b64bd583c8a79cf46a6c02ccdaad293980c |
|
MD5 | 421e2e4664d095db13f5c346c2c96e42 |
|
BLAKE2b-256 | 2cb47dec74a370bd3a3c47ddaf2651ee397f2dc53b45564cd2b8a0a52c03823d |