devel/py-shtab 1.7.1_1 MidnightBSD
Automagic shell tab completion for Python CLI applications
- System
- MidnightBSD
- Repository
- mports
- Maintainer
- [email protected]
- License
- Apache-2.0
- Categories
- devel, python
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 |
|---|---|---|
| MidnightBSD | devel/py-shtab | 1.7.1_1 |
| FreeBSD | devel/py-shtab | 1.12.1 |
| DragonFly | devel/py-shtab | 1.7.1 |
| HardenedBSD | devel/py-shtab | 1.12.1 |
| GhostBSD | devel/py-shtab | 1.12.1 |
Install
Binary package:
mport install ${PYTHON_PKGNAMEPREFIX}shtab
From mports:
cd /usr/mports/devel/py-shtab && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}shtab>0:devel/py-shtab
Dependencies
As this port's Makefile names them.
Build 3
${PYTHON_PKGNAMEPREFIX}setuptools>=42: devel/py-setuptools${PYTHON_PKGNAMEPREFIX}setuptools-scm>=3.4: devel/py-setuptools-scm${PYTHON_PKGNAMEPREFIX}wheel>=0: devel/py-wheel
Build dependencies 3
Required by 1
Configuration
No options to configure.
- USES
- python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| shtab-1.7.1.tar.gz | 45410 | 4e4bcb02eeb82ec45920a5d0add92eac9c9b63b2804c9196c1f1fdc2d039243c |
Master sites 2
- PYPI
- https://github.com/iterative/shtab/releases/download/v1.7.1/