devel/py-shtab - The NetBSD Packages Collection

Automagic shell tab completion for Python CLI applications

shtab automatically generates shell tab completion scripts for Python
CLI applications.  It takes an argparse.ArgumentParser object and
writes a static completion script for bash, zsh, tcsh, fish, or
PowerShell.

Because the script is generated ahead of time, completion normally
does not need to start the Python application on every key press,
unlike argcomplete.

shtab can be used as a library, to add a --print-completion option to
an application, or through the shtab command, which works on any
importable parser (also click based ones, and docopt via argopt).

Build dependencies

devel/py-setuptools devel/py-setuptools_scm devel/py-build misc/py-installer pkgtools/mktools pkgtools/cwrappers

Runtime dependencies

lang/python314 lang/python314

Binary packages

OSArchitectureVersion
(none)

Binary packages can be installed with the high-level tool pkgin (which can be installed with pkg_add) or pkg_add(1) (installed by default). The NetBSD packages collection is also designed to permit easy installation from source.

Available build options

(none)

Known vulnerabilities

The pkg_admin audit command locates any installed package which has been mentioned in security advisories as having vulnerabilities.

Please note the vulnerabilities database might not be fully accurate, and not every bug is exploitable with every configuration.


Problem reports, updates or suggestions for this package should be reported with send-pr.