Python-argh

From Free Software Directory
 
Jump to: navigation, search


[edit]

Python-argh

http://pypi.python.org/pypi/argh
simple argparse wrapper

Argh provides a very simple wrapper for argparse.

Argparse is a very powerful tool; argh just makes it easy to use.

Here’s a list of features that argh adds to argparse:

  • mark a function as a CLI command and specify its arguments

before the parser is instantiated; * nested commands made easy: no messing with subparsers; * infer command name from function name; * infer agrument type from the default value; * infer argument action from the default value (for booleans); * infer arguments from function signature; * add an alias root command help for the --help argument; * enable passing unwrapped arguments to certain functions instead of an argparse.Namespace object.

Argh is fully compatible with argparse. You can mix argh-agnostic and argh-aware code. Just keep in mind that dispatch() does some extra work that a custom dispatcher may not do.





Licensing

License

Verified by

Verified on

Notes

License

Other

Verified by

Debian: Marco Nenciarini <mnencia@debian.org>

Verified on

9 October 2014

Notes

License: lgpl-3.0+




Leaders and contributors

Resources and communication

AudienceResource typeURI
Downloadhttp://pypi.python.org/pypi/argh
Debian (Ref)https://tracker.debian.org/pkg/python-argh


Software prerequisites




Entry







"Debian (Ref)" is not in the list (General, Help, Bug Tracking, Support, Developer) of allowed values for the "Resource audience" property.








Date 2015-07-17
Source Debian
Source link http://packages.debian.org/sid/python-argh

[[Category:]]



Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the page “GNU Free Documentation License”.

The copyright and license notices on this page only apply to the text on this page. Any software or copyright-licenses or other similar notices described in this text has its own copyright notice and license, which can usually be found in the distribution or license text itself.