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
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/py-shtab | 1.12.1 |
| DragonFly | devel/py-shtab | 1.7.1 |
| MidnightBSD | devel/py-shtab | 1.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.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 1.12.1 | 1.12.1 | 1.5.8 | 1.7.2 | 1.12.1 |
| FreeBSD:14:quarterly | 1.12.1 | 1.12.1 | n/a | 1.7.2 | 1.12.1 |
| FreeBSD:15:latest | 1.12.1 | 1.12.1 | n/a | 1.7.2 | 1.7.2 |
| FreeBSD:15:quarterly | 1.12.1 | 1.12.1 | n/a | n/a | n/a |
| FreeBSD:16:latest | 1.12.1 | 1.12.1 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Build 3
${PYTHON_PKGNAMEPREFIX}setuptools>=61: devel/py-setuptools${PYTHON_PKGNAMEPREFIX}setuptools-scm>=3.4: devel/py-setuptools-scm${PYTHON_PKGNAMEPREFIX}wheel>=0: devel/py-wheel
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
| File | Size | SHA256 |
|---|---|---|
| shtab-1.12.1.tar.gz | 66195 | 0637338723a8fc08ed1c2fd826d8432229924649c26e3247bb48c53d60ca3bf9 |
Master sites 2
- PYPI
- https://github.com/iterative/shtab/releases/download/v1.12.1/