{ "info": { "author": "Fran\u00e7ois M\u00e9nab\u00e9", "author_email": "francois.menabe@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: Developers", "Intended Audience :: System Administrators", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Utilities" ], "description": "Command-line generator in python\n================================\n\n.. image:: https://img.shields.io/pypi/l/clg.svg\n\t\t :target: https://opensource.org/licenses/MIT\n\t\t :alt: License\n\n.. image:: https://img.shields.io/pypi/pyversions/clg.svg\n :target: https://pypi.python.org/pypi/clg\n :alt: Versions\n\n.. image:: https://img.shields.io/pypi/v/clg.svg\n :target: https://pypi.python.org/pypi/clg\n :alt: PyPi\n\n.. image:: https://img.shields.io/badge/github-repo-yellow.jpg\n :target: https://github.com/fmenabe/python-clg\n :alt: Code repo\n\n.. image:: https://readthedocs.org/projects/clg/badge/?version=latest\n :target: http://clg.readthedocs.org/en/latest/\n :alt: Documentation\n\n.. image:: https://landscape.io/github/fmenabe/python-clg/master/landscape.svg?style=flat\n :target: https://landscape.io/github/fmenabe/python-clg/master\n :alt: Code Health\n\n.. .. image:: https://img.shields.io/pypi/dm/clg.svg\n :target: https://pypi.python.org/pypi/clg\n :alt: Downloads\n\nThis module is a wrapper to **argparse** module. Its goal is to generate a\ncustom and advanced command-line from a formatted dictionary. As python\ndictionnaries are easily exportable to configuration files (like YAML or JSON),\nthe idea is to outsource the command-line definition to a file instead of\nwriting dozens or hundreds lines of code.\n\nCode is available on Github (http://github.com/fmenabe/python-clg).\n\nDocumentation is available on readthedocs (https://clg.readthedocs.org/en/latest/).\n\nRelease notes\n-------------\n2.3.1 (2017-01-19)\n~~~~~~~~~~~~~~~~~~\n * Add some additionnal checks (for the main configuration and types;\n `bbcff61 `_,\n `dd21371 `_).\n * Correct a bug where some commands number in the resulted Namespace were skipped\n (`6ec1abc `_).\n\n2.3.0 (2016-10-20)\n~~~~~~~~~~~~~~~~~~\n * Add subparsers after args and options for improved behaviour\n (`4c4471c `_).\n * Add a '-p/--page' option to the ``help`` command (added by the\n `add_help_cmd `_\n parameter) allowing to page the output\n (`8b2d9fd `_).\n * Remove obsolete script for generating bash and zsh completion\n (`b7a06fb `_).\n * Fix a bug that prevented the completion (using\n `argcomplete `_) to work when\n ``print_help`` is used\n (`d2590f7 `_).\n * Fix a bug that prevented paging of the help (behaviour induced by the\n `page_help `_\n parameter) when the ``help`` option was not defined manually\n (`0a1a0b4 `_).\n * Add the ``completer`` parameter for options and arguments allowing to manage\n `argcomplete completers\n `_\n (`20c8461 `_).\n * Update documentation for `argcomplete `_\n (`66ad52a `_).\n\n2.2.0 (2016-06-09)\n~~~~~~~~~~~~~~~~~~\n * Add a ``negative_value`` parameter for parsers allowing to redefine how\n negatives values are distinguished from options\n (`4c7e7be `_).\n\n2.1.1 (2016-05-08)\n~~~~~~~~~~~~~~~~~~\n * ``print_help`` parameter is not anymore a root parameter but a per command\n parameter and simulate the use of the `--help` option if no arguments are\n supplied (`6bee4d9 `_).\n This allows flexibiliy for (sub)commands that do not require any input.\n\n2.1.0 (2016-05-08)\n~~~~~~~~~~~~~~~~~~\n * Remove empty list for default value when ``nargs`` is set to *\\** or *+*\n (`4102816 `_).\n * Allows to add custom actions by updating ``ACTIONS`` dictionnary\n (`65d7480 `_).\n * Add a ``page_help`` action allowing to page help\n (`818383b `_,\n `f788f35 `_).\n * Add the parameter ``page_help`` at the root of the configuration allowing\n to page the help of all commands (by replacing the default ``help`` action\n by the ``page_help`` action;\n `9454f7a `_).\n * Add the parameter ``print_help`` at the root of the configuration\n allowing to print help when no arguments is set (also work for subcommands;\n `5ea6fe8 `_)\n\n2.0.0 (2015-06-25)\n~~~~~~~~~~~~~~~~~~\n * Change behaviour of groups: groups now act like parsers rather than just\n referencing previously defined options. **It breaks files used by previous\n versions**.\n * Update design and correct bugs of the ``help`` command added by the\n *add_help_cmd* keyword.\n * Improve control of abbrevations behaviour. When ``allow_abbrev`` parameter\n was activate, it was not possible to concatenate single options or split\n with an '=' long options. This is now the case.\n * Correct a bug with YAML anchors which causes loss of informations (like\n the short option).\n\n1.1.1 (2015-02-24)\n~~~~~~~~~~~~~~~~~~\n * Correct a bug when using ``version`` action.\n\n1.1 (2015-02-17)\n~~~~~~~~~~~~~~~~\n * Add a ``version`` keyword for options, allowing to use ``version`` action.\n * Allow an option ``add_help_cmd`` in the root of the configuration that\n automatically add a ``help`` command that show the arborescence of all\n commands with their descriptions.\n * Allow the use of ``argparse.SUPPRESS`` with ``__SUPPRESS__`` \"builtin\".\n * Replace the \"builtins\" __CHOICES__, __MATCH__ and __FILE__ in the help\n message by the respectives values of those keywords.\n * Add the parameter ``allow_abbrev`` in parser configuration, controlling\n abbrevations behaviour (http://bugs.python.org/issue14910).\n\n1.0 (2014-10-28)\n~~~~~~~~~~~~~~~~\n * Rewrite module for matching at best ``argparse``.\n * Allow bultins.\n * Drop compatibility to python2.6 (because of dict comprehension).\n\n0.5 (2013-11-25)\n~~~~~~~~~~~~~~~~\n * Port code to Python 3 (with compatiblity at least until Python 2.6).\n\n0.4 (2013-11-14)\n~~~~~~~~~~~~~~~~\n * Add description of parser (via *desc* keyword).\n\n0.3 (2013-08-09)\n~~~~~~~~~~~~~~~~\n * Add an iterable and accessible namespace for arguments.\n * Change behaviour of *parse* method (now return a namespace with arguments).\n * Set the default value for *list* type to an empty list.\n * Changes the behaviour of the execution of an external module. It is no\n longer a python path of a module in 'sys.path' but directly the path of a\n file. In addition, keyword 'lib' has be replaced by 'path'.\n * Replace '__FILE__' in the default value of an option by the directory of the\n program.\n * Update the license to MIT.\n\n0.2 (2013-07-21)\n~~~~~~~~~~~~~~~~\n * **CommandLine** object doesn't take anymore a JSON or YAML file but a\n dictionary.\n * Add documentation.\n * Updating setup for PyPi.\n", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/fmenabe/python-clg", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://clg.readthedocs.org/en/latest/", "keywords": "command-line", "license": "MIT License", "maintainer": "", "maintainer_email": "", "name": "clg", "package_url": "https://pypi.org/project/clg/", "platform": "", "project_url": "https://pypi.org/project/clg/", "project_urls": { "Download": "https://github.com/fmenabe/python-clg", "Homepage": "https://clg.readthedocs.org/en/latest/" }, "release_url": "https://pypi.org/project/clg/2.3.1/", "requires_dist": null, "requires_python": "", "summary": "Command-line generator from a dictionary.", "version": "2.3.1" }, "last_serial": 2585882, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "b9b528a74b00862153ea7124d45658b5", "sha256": "e66916716556eac7398aa6fa1b188acba266db988c6b1608d100059c687e4169" }, "downloads": -1, "filename": "clg-0.1.tar.gz", "has_sig": false, "md5_digest": "b9b528a74b00862153ea7124d45658b5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4481, "upload_time": "2013-07-17T15:23:15", "url": "https://files.pythonhosted.org/packages/2f/56/a9d7d59fbfd89120f52cc6f8e3044168cb3e353b00c62622f75380689c54/clg-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "b4ec7c364a33fb6b2a1c3d0e323218f0", "sha256": "1943e8e17acd0c4a58130213b4b9a13f665c9378f4604bd01d5b3cee79c9b8cf" }, "downloads": -1, "filename": "clg-0.2.tar.gz", "has_sig": false, "md5_digest": "b4ec7c364a33fb6b2a1c3d0e323218f0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4505, "upload_time": "2013-07-21T15:41:15", "url": "https://files.pythonhosted.org/packages/cf/36/954cb9ba2d2e781a260121947c4a7fc4b5a6c5385b94d3d1693e97279d18/clg-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "940edd407f98a8323272fe212a258a05", "sha256": "1b3897a489062762c89eef86bc7a1b6dbe105aba38be6cf94fa6501b9e1df7de" }, "downloads": -1, "filename": "clg-0.3.tar.gz", "has_sig": false, "md5_digest": "940edd407f98a8323272fe212a258a05", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5728, "upload_time": "2013-08-09T19:31:13", "url": "https://files.pythonhosted.org/packages/4b/18/322ab59f73cb751dab52a000398ab852ba30f1763336cd2e0040c5a8c48c/clg-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "2791ae07cfa8bb56b95b9f468bc02129", "sha256": "690db0551c0527e4d191eab41a0f9ef2c297b06f448f1f1c4bde160c744f1bb4" }, "downloads": -1, "filename": "clg-0.4.tar.gz", "has_sig": false, "md5_digest": "2791ae07cfa8bb56b95b9f468bc02129", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5815, "upload_time": "2013-09-14T11:45:53", "url": "https://files.pythonhosted.org/packages/31/c4/7fd3d79bd46623c19b5bad9c4f3ff1bdfb87074443f5a3350822691d46f2/clg-0.4.tar.gz" } ], "0.5": [ { "comment_text": "", "digests": { "md5": "f929972578284a8d0f74811aa06ad2b9", "sha256": "e438269a2a43657de98037fdff2c4ce9590fe972abcee9eeca85f322a6fcd780" }, "downloads": -1, "filename": "clg-0.5.tar.gz", "has_sig": false, "md5_digest": "f929972578284a8d0f74811aa06ad2b9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6026, "upload_time": "2013-11-25T16:19:46", "url": "https://files.pythonhosted.org/packages/9c/4c/54e1c540ce0d152d7e2a02cae72b4102067f51a36f05031b823be6544df1/clg-0.5.tar.gz" } ], "1.0": [ { "comment_text": "", "digests": { "md5": "a7bb1ede5711f6061c966a5d07cdf273", "sha256": "b601fcf2eeb762f2f547f7baabd7e4c8c948319bd5623599af5f4c30fa8fca45" }, "downloads": -1, "filename": "clg-1.0.tar.gz", "has_sig": false, "md5_digest": "a7bb1ede5711f6061c966a5d07cdf273", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9101, "upload_time": "2014-10-31T13:56:10", "url": "https://files.pythonhosted.org/packages/c0/19/de6fc128d2ccc4f0c091ec4037839318f44a1b71014c3ed1baa230edc38b/clg-1.0.tar.gz" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "2558cb22ee0501a5debb3bbe4f9523fe", "sha256": "f35f1dfa5dd8d57d9730a1f811a843a14a0dd58ccb3a4f13600b89910036ebf6" }, "downloads": -1, "filename": "clg-1.1.tar.gz", "has_sig": false, "md5_digest": "2558cb22ee0501a5debb3bbe4f9523fe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9231, "upload_time": "2015-02-18T00:00:21", "url": "https://files.pythonhosted.org/packages/a1/17/c16d3f15a0b86a54b7ef848db186548c1e99081299981020ea11d11abde6/clg-1.1.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "78697fed88e9f373573c8767e06c2e1b", "sha256": "d1a2de2a14fdc70eab04b38ac125632e03468502a91ed5814766f72b7da1f009" }, "downloads": -1, "filename": "clg-1.1.1.tar.gz", "has_sig": false, "md5_digest": "78697fed88e9f373573c8767e06c2e1b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9275, "upload_time": "2015-02-24T14:42:50", "url": "https://files.pythonhosted.org/packages/72/e0/ca1e0fe195e1f8545f9288f7df84ed0f753ee83a176920bed986f69c2b67/clg-1.1.1.tar.gz" } ], "2.0.0": [ { "comment_text": "", "digests": { "md5": "11d610d04786c5cb5f15d95354ef15ce", "sha256": "fd529591d70999604470de80bcee14b50fc82a7cc4969932d2d971cbe125fe47" }, "downloads": -1, "filename": "clg-2.0.0.tar.gz", "has_sig": false, "md5_digest": "11d610d04786c5cb5f15d95354ef15ce", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11065, "upload_time": "2015-06-25T12:35:00", "url": "https://files.pythonhosted.org/packages/19/d2/2f284ea97f051f019479319c394e96c161c45d83cb9110ec3da9cc057509/clg-2.0.0.tar.gz" } ], "2.1.0": [ { "comment_text": "", "digests": { "md5": "8d05ac588b815adfe92dc4148b07aea2", "sha256": "2feaca2bc7fe8d531b9dc009161ece5bcf7a47233ce1da0bcf6ac48c1c8620f6" }, "downloads": -1, "filename": "clg-2.1.0.tar.gz", "has_sig": false, "md5_digest": "8d05ac588b815adfe92dc4148b07aea2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12075, "upload_time": "2016-05-08T12:01:49", "url": "https://files.pythonhosted.org/packages/04/e6/f28b596bfa64b01b601522b1983975d62d15a2ea3ca766f1e50ebde7dd65/clg-2.1.0.tar.gz" } ], "2.1.1": [ { "comment_text": "", "digests": { "md5": "904f6c21e8e1de4a6d5d50e9a5dfc0c1", "sha256": "a05cc74c13f899ab7107bac548e505eb914853e0d485bb002d5d5a3cda624a90" }, "downloads": -1, "filename": "clg-2.1.1.tar.gz", "has_sig": false, "md5_digest": "904f6c21e8e1de4a6d5d50e9a5dfc0c1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12185, "upload_time": "2016-05-08T17:24:21", "url": "https://files.pythonhosted.org/packages/e7/37/1df716ce7fd6b734e524abbaf8a86fa821f34dfb13d5da72a302e8ee821d/clg-2.1.1.tar.gz" } ], "2.2.0": [ { "comment_text": "", "digests": { "md5": "fa7ab2709ef361ddf003e750edeab147", "sha256": "c0358b133f2c2460b73854a9c3132613254fd1a440ac219bc24d2eaaf4ba6967" }, "downloads": -1, "filename": "clg-2.2.0.tar.gz", "has_sig": false, "md5_digest": "fa7ab2709ef361ddf003e750edeab147", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12314, "upload_time": "2016-06-09T14:37:14", "url": "https://files.pythonhosted.org/packages/91/aa/9e74fa81eba7402fa4f04b98e19f3ae875dc657e4e14fa400887e309e4a5/clg-2.2.0.tar.gz" } ], "2.3.0": [ { "comment_text": "", "digests": { "md5": "eae9b265d9cc3339c61af94eeff4621a", "sha256": "ac72506276313caa82af21efbf30c56c4315fc862209b7a2ba93245c29ba96be" }, "downloads": -1, "filename": "clg-2.3.0.tar.gz", "has_sig": false, "md5_digest": "eae9b265d9cc3339c61af94eeff4621a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12729, "upload_time": "2016-10-20T20:01:51", "url": "https://files.pythonhosted.org/packages/0a/b3/2efa3d53bd9276e6cb994c50cbb8fa6b6e959714a5339cb4f7e89cc9647a/clg-2.3.0.tar.gz" } ], "2.3.1": [ { "comment_text": "", "digests": { "md5": "1c4e07ed6ad394de37fcf672cf7fad99", "sha256": "d26e777c0aea72a37085236eecd5975628ee1334362a683d7947360c67fe2ed7" }, "downloads": -1, "filename": "clg-2.3.1.tar.gz", "has_sig": false, "md5_digest": "1c4e07ed6ad394de37fcf672cf7fad99", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13084, "upload_time": "2017-01-19T19:28:46", "url": "https://files.pythonhosted.org/packages/9a/51/72373deb5df9cb597d734b1252566f7e2c511efaf444136c3212405310cd/clg-2.3.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1c4e07ed6ad394de37fcf672cf7fad99", "sha256": "d26e777c0aea72a37085236eecd5975628ee1334362a683d7947360c67fe2ed7" }, "downloads": -1, "filename": "clg-2.3.1.tar.gz", "has_sig": false, "md5_digest": "1c4e07ed6ad394de37fcf672cf7fad99", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13084, "upload_time": "2017-01-19T19:28:46", "url": "https://files.pythonhosted.org/packages/9a/51/72373deb5df9cb597d734b1252566f7e2c511efaf444136c3212405310cd/clg-2.3.1.tar.gz" } ] }