A CLI Arguments verifier.
Project description
cli_veripy
This is a robust CLI arguments verification and management module that I made for use in my own CLI projects.
Quickstart/Features
-
pargs are positional arguments and can be accessed via
cli_args_instance[some integer index]or via a key string if a parg name is provided via pargs_names -
The
CLIArgumentclass (not to be confused withCLIArguments) can be used instead of types when defining your positional arguments, keyword arguments and flags for extra validation and documentation. -
If
help_menuis set toTruewhen creating theCLIArguments, you can display documentation (if available) for the argument by doingpython program_name.py help:argument_name. -
To require a CLI argument to be an existing file system path, you can set the CLI argument type to
ExistingPath. TheCLIArgumentsclass will then automatically handle any invalid paths. -
If you wish to have CLI errors handled by
CLIArgumentsjust set exit_on_invalid to true whenCLIArguments.__init__is called.
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 cli_veripy-1.1.9.tar.gz.
File metadata
- Download URL: cli_veripy-1.1.9.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d452c575604f68ddf528d7f03576769b299222951310274f1710b0a4094f487a
|
|
| MD5 |
d1fc92c5edc5af6ec5c1348df1e415a5
|
|
| BLAKE2b-256 |
374a15dc11442e7e39d0200b89b36ccee15e33ec2b57870e4a1f998bec39c7f7
|
File details
Details for the file cli_veripy-1.1.9-py3-none-any.whl.
File metadata
- Download URL: cli_veripy-1.1.9-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14c3ee9955b670be0d903801e3b4bca4185bab0d1d2a7e0e4dc457afd2d50ef8
|
|
| MD5 |
dc9fd6fe76f2a0475d64b015476ba4b1
|
|
| BLAKE2b-256 |
80642ac177766010852ad28b1d733a6da131b5a475e2fd1ff442d08a90e4ebd2
|