No project description provided
Project description
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=1
onwards, 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
argvsucks-0.230725.6.tar.gz
(3.0 kB
view details)
Built Distribution
File details
Details for the file argvsucks-0.230725.6.tar.gz
.
File metadata
- Download URL: argvsucks-0.230725.6.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.10.6 Linux/5.15.0-73-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4b58d301f1b5c380f86bc1f2d5e9a19b347c4ba8745435bcf248bfaac867ccb |
|
MD5 | 9c4bd0214631b406073ed93c8fdad8b2 |
|
BLAKE2b-256 | 67f7cc9116af9ac02c56e9f41b29e7d3fc3c9df3a972cc09a58d4efd580715f3 |
File details
Details for the file argvsucks-0.230725.6-py3-none-any.whl
.
File metadata
- Download URL: argvsucks-0.230725.6-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.10.6 Linux/5.15.0-73-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d830f6684989bcd803682f4174956e552696094533cd7a8ad28328197340536a |
|
MD5 | 0a57e68ab8051ecf53c49532db99c98f |
|
BLAKE2b-256 | 22ee799791764b57a60de31234a5c85f2799c41e55e98135a0aadccc22ab191d |