Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

snaparg-0.1.0.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

snaparg-0.1.0-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

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

Hashes for snaparg-0.1.0.tar.gz
Algorithm Hash digest
SHA256 063046d65764ce8372efc12130f5c2bde9b962d0688692401a577a1e7111f6b0
MD5 9f7319a5947aacf595193c19e4e76cad
BLAKE2b-256 b7417e0126b68411cd1727e7bde6fac420d87aed38f0812a24c86a6c07dfb32b

See more details on using hashes here.

Provenance

The following attestation bundles were made for snaparg-0.1.0.tar.gz:

Publisher: python-publish.yml on ArchooD2/snaparg

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for snaparg-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 164a3fcc787946226b06d7892662a4ee15b38b44550e8b22064add08442459e0
MD5 159a323a8d03e435e5480b21dbaaf3f3
BLAKE2b-256 923c263ebf73d7f95d6093cb233e0197880e1ae9d8304ebbdf61a58c5adc87a3

See more details on using hashes here.

Provenance

The following attestation bundles were made for snaparg-0.1.0-py3-none-any.whl:

Publisher: python-publish.yml on ArchooD2/snaparg

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page