# 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.py") 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 in cmd on windows
`bash python copy.py image{1..10}.jpg folder python copy.py file.txt{,.bak} `
You can test expression expansion in cmd like this
`bash python -m bashrange -v {1..10..2} `
## Author
Stanislav Doronin <mugisbrows@gmail.com>
## License
bashrange is distributed under the terms of MIT license, check LICENSE file.
Metadata
Release files for bashrange 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| bashrange-0.0.4.tar.gz | 3.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bashrange-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.4 kB
Release files / bashrange-0.0.4.tar.gz
| Download URL | bashrange-0.0.4.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0895c434d307f554a9114cbf1ade18dfe7d8ea5a1c773cc6b415c1de97ea896b
|
|
BLAKE2b-256 checksum How to use checksums |
dd41c9bfbe4e8aa4717d45bdf098b959d3d342d320c2ce72d5122f114a920f70
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Release files / bashrange-0.0.4-py3-none-any.whl
| Download URL | bashrange-0.0.4-py3-none-any.whl |
|---|---|
| Size | 16.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0be689f1129baf8536a6c0630be70a9d27ec7a2e11b18e8457775242ee22c553
|
|
BLAKE2b-256 checksum How to use checksums |
037e73140a55bde073215b40ab7fd3f238c036844a0235dcf470a853e42ac278
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Security for bashrange 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.