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=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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file argvsucks-0.230725.7.tar.gz.
File metadata
- Download URL: argvsucks-0.230725.7.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/6.2.0-34-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8af130f115172f58382eca22fc2ea27929162d72640f854f2c41225fb61c886a
|
|
| MD5 |
61c91e865af5ab43631a42a3e678a030
|
|
| BLAKE2b-256 |
4f0d37984cc454ff77b2c3ef574763ab1edcb253d69cfcc3461a1d7828733657
|
File details
Details for the file argvsucks-0.230725.7-py3-none-any.whl.
File metadata
- Download URL: argvsucks-0.230725.7-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/6.2.0-34-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d0d431301cd8f97ae18b0d6a27ca453247686d263d3cc38ebf753324365adf3
|
|
| MD5 |
c627c7df643e8e547ec20fc9d577cf2f
|
|
| BLAKE2b-256 |
7e91e7573b31b1e37007f2f249c2a02ad6b726fc227e99b11aa89bb2e3825913
|