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.post1.tar.gz (78.2 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.post1-py3-none-any.whl (97.4 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for cli_command_parser-2022.8.28.post1.tar.gz
Algorithm Hash digest
SHA256 bbca308404422cd2e20f6fa934a22cadefc95f31737bdd735b06e844f959b31d
MD5 38c9f07c328c37dc90cf276bd55935ff
BLAKE2b-256 c223367b327fbad6e69b0427c7cc97ee63b44d3266c1e0dc6bdbc549ee29049b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cli_command_parser-2022.8.28.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 d9e0f796839f3d429f09f5215d83dbd7072a48f8afef440d9c0a227609df1d3a
MD5 4776e932f43ec59478ad42b014e7144e
BLAKE2b-256 a550925bd9c20d78c3cc27caf7f36e68f0aa7e833a93de28c65ce16fd4ddb1fd

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