BSD Ports

devel/py-shtab 1.12.1 FreeBSD

Automagic shell tab completion for Python CLI applications

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
c6081be6fb
License
APACHE20
Categories
devel, python
Package size
51.8 KiB, 253.4 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
FreeBSDdevel/py-shtab1.12.1
DragonFlydevel/py-shtab1.7.1
MidnightBSDdevel/py-shtab1.7.1_1

Install

Binary package:

pkg install py312-shtab

From the ports tree:

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

To depend on this port in another port's Makefile:

RUN_DEPENDS=	py312-shtab>0:devel/py-shtab

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest1.12.11.12.11.5.81.7.21.12.1
FreeBSD:14:quarterly1.12.11.12.1n/a1.7.21.12.1
FreeBSD:15:latest1.12.11.12.1n/a1.7.21.7.2
FreeBSD:15:quarterly1.12.11.12.1n/an/an/a
FreeBSD:16:latest1.12.11.12.1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 3

The full lists below include those, and their dependencies in turn.

Build dependencies 17
Run dependencies 7

Configuration

No options to configure.

USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
shtab-1.12.1.tar.gz661950637338723a8fc08ed1c2fd826d8432229924649c26e3247bb48c53d60ca3bf9
Master sites 2
  • PYPI
  • https://github.com/iterative/shtab/releases/download/v1.12.1/

Commit history 3

DateCommitCreditsLog message
c6081be6fb Po-Chuan Hsieh devel/py-shtab: Update to 1.12.1
Changes: https://github.com/tqdm/shtab/releases
d328644457 Po-Chuan Hsieh devel/py-shtab: Update to 1.11.0
Changes: https://github.com/tqdm/shtab/releases
102f46da37 Po-Chuan Hsieh devel/py-shtab: Update to 1.8.1
- Update WWW Changes: https://github.com/tqdm/shtab/releases https://github.com/tqdm/shtab/commits/main