Skip to main content

CLI Command Parser

Project description

downloads py_version coverage_badge build_status Blue

Command Parser is a class-based CLI argument parser that defines parameters with descriptors.

The primary goals of this project:
  • Make it easy to define subcommands and actions in an clean and organized manner

  • Allow for inheritance so that common parameters don’t need to be repeated

  • Make it easy to handle common initialization tasks for all actions / subcommands once

  • Reduce the amount of boilerplate code that is necessary for setting up parsing and handling argument values

Installing CLI Command Parser

CLI Command Parser is available on PyPI:

$ pip install cli-command-parser

There are no required dependencies. Support for formatting wide characters correctly in help text descriptions can be included by adding wcwidth to your project’s requirements, and/or by installing with optional dependencies:

$ pip install cli-command-parser[wcwidth]

Documentation & Examples

User & API documentation is available.

Example scripts using CLI Command Parser can be found in the examples directory.

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

cli_command_parser-2022.8.28.post2.tar.gz (78.3 kB view details)

Uploaded Source

Built Distribution

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

cli_command_parser-2022.8.28.post2-py3-none-any.whl (97.5 kB view details)

Uploaded Python 3

File details

Details for the file cli_command_parser-2022.8.28.post2.tar.gz.

File metadata

File hashes

Hashes for cli_command_parser-2022.8.28.post2.tar.gz
Algorithm Hash digest
SHA256 06514324dc01e8dc34355fc2a5e31118ae2aab010f0dad99b507e2acac56737f
MD5 0bb350a0495280a407e1e82c5efc5824
BLAKE2b-256 44897af7083db8b1e677b81f8da4567e3a2f130929d5431c803be49f3bc866c3

See more details on using hashes here.

File details

Details for the file cli_command_parser-2022.8.28.post2-py3-none-any.whl.

File metadata

File hashes

Hashes for cli_command_parser-2022.8.28.post2-py3-none-any.whl
Algorithm Hash digest
SHA256 62ae281a5fb9c7774883c4ede71c8a1759a99d1610e4cb5a82f4a6bb078885d0
MD5 3e266c279b9065049e7b8ad20516815f
BLAKE2b-256 65c4831f76e96705a15a07f3c43d997ab4a244dd93989f0d98c8a18909b0025c

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