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.
Metadata
Release files for cli-veripy 1.2.12
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cli_veripy-1.2.12.tar.gz | 8.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cli_veripy-1.2.12-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.6 kB
Release files / cli_veripy-1.2.12.tar.gz
| Download URL | cli_veripy-1.2.12.tar.gz |
|---|---|
| Size | 8.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2ab96c05a4c3785fa79b384992adc429fc770b034449ce9a42827b44fb5fb7d9
|
|
BLAKE2b-256 checksum How to use checksums |
6360c26bed53bf0e00e3d9ed997216b689feab1b9345c765fc227e1f08b21e9a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / cli_veripy-1.2.12-py3-none-any.whl
| Download URL | cli_veripy-1.2.12-py3-none-any.whl |
|---|---|
| Size | 11.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6bfdb59c40386a42f799e6d808804f6d0da3ee615ca0b0c60a4003bdce46066e
|
|
BLAKE2b-256 checksum How to use checksums |
fc04eb385f7628384b4012244597c074284f78b18481b476bd84359ee06eacb5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|