A typo-tolerant CLI parser wrapper for argparse
Project description
snaparg
snaparg is a Python library that wraps around argparse to make CLI tools more user-friendly by forgiving small typos in argument names and offering helpful suggestions.
Example
$ python demo.py --iput file.txt
Error: Unknown or invalid argument(s).
Did you mean: '--iput' -> '--input'?
Full message:
usage: demo.py [-h] [--input INPUT] [--output OUTPUT] [--force]
Installation
pip install snaparg
License
MPL 2.0 License
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 snaparg-0.1.0.tar.gz.
File metadata
- Download URL: snaparg-0.1.0.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
063046d65764ce8372efc12130f5c2bde9b962d0688692401a577a1e7111f6b0
|
|
| MD5 |
9f7319a5947aacf595193c19e4e76cad
|
|
| BLAKE2b-256 |
b7417e0126b68411cd1727e7bde6fac420d87aed38f0812a24c86a6c07dfb32b
|
Provenance
The following attestation bundles were made for snaparg-0.1.0.tar.gz:
Publisher:
python-publish.yml on ArchooD2/snaparg
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
snaparg-0.1.0.tar.gz -
Subject digest:
063046d65764ce8372efc12130f5c2bde9b962d0688692401a577a1e7111f6b0 - Sigstore transparency entry: 200952709
- Sigstore integration time:
-
Permalink:
ArchooD2/snaparg@a14d5229cbe8e30c7805ccbd1f7b072192e8432d -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/ArchooD2
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@a14d5229cbe8e30c7805ccbd1f7b072192e8432d -
Trigger Event:
release
-
Statement type:
File details
Details for the file snaparg-0.1.0-py3-none-any.whl.
File metadata
- Download URL: snaparg-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
164a3fcc787946226b06d7892662a4ee15b38b44550e8b22064add08442459e0
|
|
| MD5 |
159a323a8d03e435e5480b21dbaaf3f3
|
|
| BLAKE2b-256 |
923c263ebf73d7f95d6093cb233e0197880e1ae9d8304ebbdf61a58c5adc87a3
|
Provenance
The following attestation bundles were made for snaparg-0.1.0-py3-none-any.whl:
Publisher:
python-publish.yml on ArchooD2/snaparg
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
snaparg-0.1.0-py3-none-any.whl -
Subject digest:
164a3fcc787946226b06d7892662a4ee15b38b44550e8b22064add08442459e0 - Sigstore transparency entry: 200952713
- Sigstore integration time:
-
Permalink:
ArchooD2/snaparg@a14d5229cbe8e30c7805ccbd1f7b072192e8432d -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/ArchooD2
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@a14d5229cbe8e30c7805ccbd1f7b072192e8432d -
Trigger Event:
release
-
Statement type: