File: control

package info (click to toggle)
clap 0.14.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 420 kB
  • sloc: python: 2,604; makefile: 35; sh: 2
file content (59 lines) | stat: -rw-r--r-- 2,708 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
Source: clap
Section: python
Priority: optional
Maintainer: Debian QA Group <packages@qa.debian.org>
Build-Depends: debhelper-compat (= 13),
               dh-python,
               python3,
               python3-all,
               python3-setuptools,
X-Python3-Version: >= 3.7
Standards-Version: 4.5.1
Rules-Requires-Root: no
Homepage: https://github.com/marekjm/clap
Vcs-Browser: https://salsa.debian.org/debian/python3-clap
Vcs-Git: https://salsa.debian.org/debian/python3-clap.git

Package: python3-clap
Architecture: all
Depends: ${misc:Depends}, ${python3:Depends}
Description: command line arguments parser
 CLAP aims at being powerful and advanced command line interface library for
 Python 3 language. Having built-in support for modes, optional and obligatory
 options, options with arguments (with type-checking with arbitrary types) it
 enables programmers to create rich command line interfaces for Python 3
 programs.
 .
 Features:
   * Support for single-level and nested modes (with per-mode and global
     options).
   * Support for grouped short options (ls -lhR).
   * Support for long options with or without equal-sign-connected arguments
     (--log=./file.log and --log ./file.log are both correct).
   * Support for option aliases (short/long names).
   * Support for typed arguments (str, int, float built-in and other arbitrary
     types via callbacks).
   * Built-in type checking of option arguments.
   * Support for multiple arguments for options (e.g. --point 0 0).
   * Checking for missing arguments with options which require them.
   * Checking for conflicting options (eg. --quiet must not come with option
     --verbose).
   * Support for options that MUST be passed to the program.
   * Support for options required by other options (e.g. --key requires
     --value).
   * Support for options wanted by other options (e.g. --which wants --this or
     --that or both).
   * Good set of exceptions with detailed error messages.
   * Ability to load interface from JSON descriptions.
   * Automatic generation of help screens (for your-tool help command) with
     per-mode, per-option, and per-operand descriptions, usage examples,
     and more.
   * Support for shortcuts for command names (shortest-unique name is
     sufficient for CLAP to resolve the command, it is not necessary to
     write full names).
 .
 CLAP is not the most easy to use command line arguments parser for Python,
 but that it is one of the most powerful (if not the most powerful) framework
 for writing command line interfaces. With excellent support for modes,
 options, and operands, automatic input verification, and help screen
 generation you get a big return on your investment.