opinionated, simple arg parsing
Project description
🗣️ argumentative
simple, opinionated command line parser
features
- simple, opinionated
- automatically generates help and usage messages
- uses msgspec for structs and type coercion
- secret fourth feature
usage
pip install argumentative
from argumentative import argumentative
@argumentative
class Args:
config: str # path to a config file
verbose: bool = False # whether to print verbose output
args = Args.from_args()
print(args)
python basic.py config.json --verbose
# Args(config='config.json', verbose=True)
python basic.py --help
# basic.py - example of using argumentative
#
# Options:
# --config <str> - path to a config file
# --verbose <bool> - whether to print verbose output
license
hippocratic license 3.0. (c) allura-org
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
argumentative-0.0.1.tar.gz
(10.7 kB
view details)
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 argumentative-0.0.1.tar.gz.
File metadata
- Download URL: argumentative-0.0.1.tar.gz
- Upload date:
- Size: 10.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.28.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8c3113227fc987c6fa7fedc997ef32c8a22812b359cd07006a92457be4d1e3a
|
|
| MD5 |
1e824c6defc1616b977a236d038b5ad6
|
|
| BLAKE2b-256 |
5b0971ca52b96dd35762514d9b5625f7105dc1facebe00c83d8133f41e3a59b9
|
File details
Details for the file argumentative-0.0.1-py3-none-any.whl.
File metadata
- Download URL: argumentative-0.0.1-py3-none-any.whl
- Upload date:
- Size: 10.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.28.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32d47b02c2920f025fca9cb596c4b373005c3dd21de4d8d89023f57a3e985501
|
|
| MD5 |
dd0c12e8f1a5cb41e1d27cd908d00f92
|
|
| BLAKE2b-256 |
fbcb7e2be0cb1a322bec0b71fe0de2a6ee3de57ea624c927330b90b6466bf3d9
|