/python-clg

Command Line Generator (clg): wrapper to argparse module that generate a command-line from a predefined dictionnary (ie: a JSON, YAML, ... file).

Primary LanguagePythonMIT LicenseMIT

Command-line generator in python

License Versions PyPi Code repo Documentation Code Health

This module, which wrap argparse, aims to simplify the creation and the maintainabilty of command-line by defining its configuration in a predefined struture (ie. a dictionnary). As python dictionnaries are easily exportable to configuration files like YAML or JSON, the idea is to outsource the command-line definition to a file instead of writing dozens or hundreds lines of code.

Code is available on Github.
Documentation is available on Readthedocs.
Changlog is available here