para-cada
Para Cada in Spanish means For Each. The tool executes your command for each file selected using glob expression(s).
Why? Let's say you have multiple .tgz archives and you would like to extract them in one shot. Some of the options available in bash are:
ls *.tgz | xargs -IT tar xzvf T
for T in *.tgz; do tar xzvf $T; done
find . -type f -name '*.tgz' -exec tar xzvf {} \;
All of them are relatively complex. This is where cada can help. Simply do:
cada 'tar xzvf *.tgz'
Cada knows where glob expression is. It executes entire command with subsequent values corresponding to this expression. Additionally, user may transform/filter/sort those values using regular Python syntax. Take a look at the documentation.
Release files for para-cada 1.9.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| para_cada-1.9.0.tar.gz | 7.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| para_cada-1.9.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.8 kB
Release files / para_cada-1.9.0.tar.gz
| Download URL | para_cada-1.9.0.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0eff8e52b88872caa1ba9cf1dae9ba4973734a2ce82a712375aaba8c711ef3fa
|
|
BLAKE2b-256 checksum How to use checksums |
669593217e2d332699c558d4a2381ca69d08b6196640a8418fae411cd666ea37
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.10.12 Linux/5.15.0-91-generic
|
Release files / para_cada-1.9.0-py3-none-any.whl
| Download URL | para_cada-1.9.0-py3-none-any.whl |
|---|---|
| Size | 8.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3619fd2c516bb72cee1aa804e9f927d868874589d32a195de93c6e835e72b180
|
|
BLAKE2b-256 checksum How to use checksums |
4f48d4f0c5ce285faa3915ed91ae9ac566eb2d2aaf55365d0d47c4f52cfcc1ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.10.12 Linux/5.15.0-91-generic
|