Automagic shell tab completion for Python CLI applications

JSON →
library 1.8.0 ·python
verified May 20, 2026

shtab is a Python library that automatically generates shell tab completion scripts for command-line interface (CLI) applications. It processes an `argparse.ArgumentParser` object to produce completion scripts for `bash`, `zsh`, and `tcsh`. It aims for speed and correctness, avoiding the side-effects and performance issues of alternatives like `argcomplete` and `pyzshcomplete`. As of version 1.8.0, it is actively maintained by Iterative AI, with its development often driven by the needs of projects like DVC, but designed for general-purpose use.

total hits 16
actors 6 distinct systems
last hit 2d ago GPTBot
GPTBot
6
Script
5
ClaudeBot
1
Search engines
2

top countries 🇺🇸 United States · 🇮🇳 India · 🇩🇪 Germany · 🇫🇷 France · 🇨🇦 Canada