| 1 | Source: clap |
| 2 | Section: python |
| 3 | Priority: optional |
| 4 | Maintainer: Franklin Timoteo dos Santos <[email protected]> |
| 5 | Build-Depends: debhelper-compat (= 13), |
| 6 | dh-python, |
| 7 | python3, |
| 8 | python3-all, |
| 9 | python3-setuptools, |
| 10 | X-Python3-Version: >= 3.7 |
| 11 | Standards-Version: 4.6.1 |
| 12 | Rules-Requires-Root: no |
| 13 | Homepage: https://github.com/marekjm/clap |
| 14 | Vcs-Browser: https://salsa.debian.org/debian/python3-clap |
| 15 | Vcs-Git: https://salsa.debian.org/debian/python3-clap.git |
| 16 | |
| 17 | Package: python3-clap |
| 18 | Architecture: all |
| 19 | Depends: ${misc:Depends}, ${python3:Depends} |
| 20 | Description: command line arguments parser |
| 21 | CLAP aims at being powerful and advanced command line interface library for |
| 22 | Python 3 language. Having built-in support for modes, optional and obligatory |
| 23 | options, options with arguments (with type-checking with arbitrary types) it |
| 24 | enables programmers to create rich command line interfaces for Python 3 |
| 25 | programs. |
| 26 | . |
| 27 | Features: |
| 28 | * Support for single-level and nested modes (with per-mode and global |
| 29 | options). |
| 30 | * Support for grouped short options (ls -lhR). |
| 31 | * Support for long options with or without equal-sign-connected arguments |
| 32 | (--log=./file.log and --log ./file.log are both correct). |
| 33 | * Support for option aliases (short/long names). |
| 34 | * Support for typed arguments (str, int, float built-in and other arbitrary |
| 35 | types via callbacks). |
| 36 | * Built-in type checking of option arguments. |
| 37 | * Support for multiple arguments for options (e.g. --point 0 0). |
| 38 | * Checking for missing arguments with options which require them. |
| 39 | * Checking for conflicting options (eg. --quiet must not come with option |
| 40 | --verbose). |
| 41 | * Support for options that MUST be passed to the program. |
| 42 | * Support for options required by other options (e.g. --key requires |
| 43 | --value). |
| 44 | * Support for options wanted by other options (e.g. --which wants --this or |
| 45 | --that or both). |
| 46 | * Good set of exceptions with detailed error messages. |
| 47 | * Ability to load interface from JSON descriptions. |
| 48 | * Automatic generation of help screens (for your-tool help command) with |
| 49 | per-mode, per-option, and per-operand descriptions, usage examples, |
| 50 | and more. |
| 51 | * Support for shortcuts for command names (shortest-unique name is |
| 52 | sufficient for CLAP to resolve the command, it is not necessary to |
| 53 | write full names). |
| 54 | . |
| 55 | CLAP is not the most easy to use command line arguments parser for Python, |
| 56 | but that it is one of the most powerful (if not the most powerful) framework |
| 57 | for writing command line interfaces. With excellent support for modes, |
| 58 | options, and operands, automatic input verification, and help screen |
| 59 | generation you get a big return on your investment. |