CLI Command Parser
Project description
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
Built Distribution
Hashes for cli_command_parser-2022.9.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85a7b6334f3928767ad6517e13f863a1c59e1fa2f61a0c1f4dba2a3d70b391cf |
|
MD5 | 006e7360213bfac695566266f1cdc3da |
|
BLAKE2b-256 | a823512b21499b8c4f223b257282acaf26c0a7984004ebf6e36a7dd3aa825154 |
Hashes for cli_command_parser-2022.9.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa2aebd1b90cd88fd3a523728dfd19c9d1dfa439acf74af802546d359854ae3e |
|
MD5 | 0857b15e31cafc11cb39df604e3a2713 |
|
BLAKE2b-256 | 0d180087670d0a216f5fefe0dce890b95ed330f2893e101392bdea1ffbdb63cf |