BSD Ports

devel/py-shtab 1.7.1 DragonFly

Automagic shell tab completion for Python CLI applications

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
APACHE20
Categories
devel, python
Package size
32.1 KiB, 149.3 KiB installed

Description

What: Automatically generate shell tab completion scripts for Python CLI apps Why: Speed & correctness. Alternatives like argcomplete and pyzshcomplete are slow and have side-effects How: shtab processes an argparse.ArgumentParser object to generate a tab completion script for your shell

Features:

  • Outputs tab completion scripts for
    • bash
    • zsh
    • tcsh
  • Supports
    • argparse
    • docopt (via argopt)
  • Supports arguments, options and subparsers
  • Supports choices (e.g. --say={hello,goodbye})
  • Supports file and directory path completion
  • Supports custom path completion (e.g. --file={*.txt})

In the other systems

SystemPortVersion
DragonFlydevel/py-shtab1.7.1
FreeBSDdevel/py-shtab1.12.1
MidnightBSDdevel/py-shtab1.7.1_1
HardenedBSDdevel/py-shtab1.12.1
GhostBSDdevel/py-shtab1.12.1

Install

Binary package:

pkg install py311-shtab

From DPorts:

cd /usr/dports/devel/py-shtab && make install clean

Dependencies

Run dependencies 1