argvsucks { argv to dict }
Latest Release | Current Code | API Documentation
Installation
...as a standalone lib
# Set up a virtualenv.
python3 -m venv venv
source venv/bin/activate
# Install from PyPI...
pip install --upgrade pip
pip install -U argvsucks
# ...or, install from updated source code.
pip install git+https://github.com/argvsucks/argvsucks
...from source
git clone https://github.com/argvsucks/argvsucks
cd argvsucks
poetry install
Examples
Usage
from argvsucks import handle_command_line
dct = handle_command_line(["program ···", "start", "end=0", "finish", "n=5", "name=Foo", "lst=a,b,c"], n=int, start=False, end=bool, lst=list)
print(dct)
"""
{'start': True, 'end': False, 'finish': True, 'n': 5, 'name': 'Foo', 'lst': ['a', 'b', 'c']}
"""
Versioning
While the version scheme has a meaningful calendar component (minor=yymmdd), it is still compatible with semantic versioning.
For instance, the version 0.230215.1 means major=0, minor=230215, micro/patch=1. Notes:
- While
major=0, some compatibility-breaking changes may occur. - From
major=1onwards, compatibility-breaking changes increment it, and update the minor version to reflect the release date. - New (non breaking) features update only the minor version to reflect the release date.
- Bug fixes (including compatibility-breaking ones) increment only the micro version.
Contributing
Donation
Currently there are no established forms of donation. Expenses:
- Programming hours
- Support
- Custom features
- Domain name maintenance yearly costs
Metadata
Release files for argvsucks 0.230725.7
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 | Actions |
|---|---|---|---|---|
| argvsucks-0.230725.7.tar.gz | 3.0 kB | Without provenance | Details for argvsucks-0.230725.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| argvsucks-0.230725.7-py3-none-any.whl | Python 3 | none | any | Details for argvsucks-0.230725.7-py3-none-any.whl |
Total release size: 6.6 kB
Release files / argvsucks-0.230725.7.tar.gz
| Download URL | argvsucks-0.230725.7.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8af130f115172f58382eca22fc2ea27929162d72640f854f2c41225fb61c886a
|
|
BLAKE2b-256 checksum How to use checksums |
4f0d37984cc454ff77b2c3ef574763ab1edcb253d69cfcc3461a1d7828733657
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.10.6 Linux/6.2.0-34-generic
|
Release files / argvsucks-0.230725.7-py3-none-any.whl
| Download URL | argvsucks-0.230725.7-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1d0d431301cd8f97ae18b0d6a27ca453247686d263d3cc38ebf753324365adf3
|
|
BLAKE2b-256 checksum How to use checksums |
7e91e7573b31b1e37007f2f249c2a02ad6b726fc227e99b11aa89bb2e3825913
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.10.6 Linux/6.2.0-34-generic
|
Security for argvsucks 0.230725.7
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.