Bash range expression evaluator for your cli application
Project description
# bashrange
Bash range expression evaluator for your cli application
# Install
`bash pip install bashrange `
# Use
Import and call expand_args
`python import argparse from bashrange import expand_args parser = argparse.ArgumentParser(prog="copy") parser.add_argument("src", nargs='+') parser.add_argument("dst") args = parser.parse_args(expand_args()) `
And you can use bash range and list expressions outiside bash shell, for example on windows
`bash python copy.py image{1..10}.jpg folder python copy.py file.txt{,.bak} `
## Author
Stanislav Doronin <mugisbrows@gmail.com>
## License
bashrange is distributed under the terms of MIT license, check LICENSE file.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for bashrange-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8e4e907918454554feea93687dd9402bb124c431447bfe9f1346c3b4abffcde |
|
MD5 | 04a1305ea4b5a4ddcbb53528c391ce2e |
|
BLAKE2b-256 | 03cc604761697f8055ad771720b741077e2f8c885f22f56e89d2230efadbf7b5 |