python-argh 0.26.2-1.1 source package in Ubuntu
Changelog
python-argh (0.26.2-1.1) unstable; urgency=medium * Non-maintainer upload. * Drop python2 support; Closes: #937581 -- Sandro Tosi <email address hidden> Wed, 16 Oct 2019 22:22:06 -0400
Upload details
- Uploaded by:
- Marco Nenciarini
- Uploaded to:
- Sid
- Original maintainer:
- Marco Nenciarini
- Architectures:
- all
- Section:
- misc
- Urgency:
- Medium Urgency
See full publishing history Publishing
Series | Published | Component | Section | |
---|---|---|---|---|
Focal | release | universe | misc |
Downloads
File | Size | SHA-256 Checksum |
---|---|---|
python-argh_0.26.2-1.1.dsc | 1.9 KiB | b2ffeae4336cbfa88066b756df088d165a6d8345e7b79ca262e769ee9180ec63 |
python-argh_0.26.2.orig.tar.gz | 32.1 KiB | e9535b8c84dc9571a48999094fda7f33e63c3f1b74f3e5f3ac0105a58405bb65 |
python-argh_0.26.2-1.1.debian.tar.xz | 3.6 KiB | 9f03cbe904071e4200cae6a3efb86e1b994f9e8a632f866aab4e32990136686d |
Available diffs
- diff from 0.26.2-1 to 0.26.2-1.1 (1.2 KiB)
No changes file available.
Binary packages built by this source
- python3-argh: simple argparse wrapper (Python 3)
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 argument 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.
.
This package installs the library for Python 3.