Skip to main content

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 CLIArgument class (not to be confused with CLIArguments) can be used instead of types when defining your positional arguments, keyword arguments and flags for extra validation and documentation.

  • If help_menu is set to True when creating the CLIArguments, you can display documentation (if available) for the argument by doing python 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. The CLIArguments class will then automatically handle any invalid paths.

  • If you wish to have CLI errors handled by CLIArguments just set exit_on_invalid to true when CLIArguments.__init__ is called.

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

cli_veripy-1.2.9.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

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

cli_veripy-1.2.9-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

Details for the file cli_veripy-1.2.9.tar.gz.

File metadata

  • Download URL: cli_veripy-1.2.9.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for cli_veripy-1.2.9.tar.gz
Algorithm Hash digest
SHA256 7d6f2502b9cdb6bbe5c0fffc73b96d39ea31e9460f98241447e35ea14f81db71
MD5 83808afab07935ee25785bd02ab54982
BLAKE2b-256 71b82f329faff4b03f1615483d7d8278a4781a481b4bff3c0a43de3f88d3b5bb

See more details on using hashes here.

File details

Details for the file cli_veripy-1.2.9-py3-none-any.whl.

File metadata

  • Download URL: cli_veripy-1.2.9-py3-none-any.whl
  • Upload date:
  • Size: 11.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for cli_veripy-1.2.9-py3-none-any.whl
Algorithm Hash digest
SHA256 9722a53cd3f4fa5440abdfc7b62c7cf2e2da972200ca1d2181b7d54b3f4e0ae5
MD5 53284681d9923fd8f58598dd213115d2
BLAKE2b-256 bd0655bcf651a58a62f8caa2baf400de12d8b3794ac1dd3593c9fb633febb987

See more details on using hashes here.

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