https://github.com/fmenabe/python-clg
Command Line Generator (clg): wrapper to argparse module that generate a command-line from a predefined dictionnary (ie: a JSON, YAML, ... file).
https://github.com/fmenabe/python-clg
argparse cli configuration-files json python wrapper yaml
Last synced: 9 months ago
JSON representation
Command Line Generator (clg): wrapper to argparse module that generate a command-line from a predefined dictionnary (ie: a JSON, YAML, ... file).
- Host: GitHub
- URL: https://github.com/fmenabe/python-clg
- Owner: fmenabe
- License: mit
- Created: 2012-12-13T16:04:29.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2022-11-09T14:54:40.000Z (about 3 years ago)
- Last Synced: 2025-03-27T06:34:42.860Z (10 months ago)
- Topics: argparse, cli, configuration-files, json, python, wrapper, yaml
- Language: Python
- Homepage: https://clg.readthedocs.org/en/latest/
- Size: 291 KB
- Stars: 32
- Watchers: 5
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG.rst
- License: LICENSE
Awesome Lists containing this project
README
Command-line generator in python
================================
.. image:: https://img.shields.io/pypi/l/clg.svg
:target: https://opensource.org/licenses/MIT
:alt: License
.. image:: https://img.shields.io/pypi/pyversions/clg.svg
:target: https://pypi.python.org/pypi/clg
:alt: Versions
.. image:: https://img.shields.io/pypi/v/clg.svg
:target: https://pypi.python.org/pypi/clg
:alt: PyPi
.. image:: https://img.shields.io/badge/github-repo-yellow.jpg
:target: https://github.com/fmenabe/python-clg
:alt: Code repo
.. image:: https://readthedocs.org/projects/clg/badge/?version=latest
:target: http://clg.readthedocs.org/en/latest/
:alt: Documentation
.. image:: https://landscape.io/github/fmenabe/python-clg/master/landscape.svg?style=flat
:target: https://landscape.io/github/fmenabe/python-clg/master
:alt: Code Health
.. .. image:: https://img.shields.io/pypi/dm/clg.svg
:target: https://pypi.python.org/pypi/clg
:alt: Downloads
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 `__