python-argcomplete – bash tab completion for argparse

Argcomplete provides easy, extensible command line tab completion of arguments for your Python script.

It makes two assumptions:

  • You’re using bash as your shell
  • You’re using argparse to manage your command line arguments/options

Argcomplete is particularly useful if your program has lots of options or subparsers, and if your program can dynamically suggest completions for your argument/option values (for example, if the user is browsing resources over the network).

This package provides the module for Python 2.x.

Package availability chart
Distribution Base version Our version Architectures
Debian GNU/Linux 10.0 (buster) 1.8.1-1    
Debian GNU/Linux 11.0 (bullseye) 1.8.1-1.5    
Debian GNU/Linux 9.0 (stretch) 1.8.1-1 1.0.0-1~nd90+1 i386, amd64, sparc, armel
Debian testing (bookworm) 2.0.0-1    
Debian unstable (sid) 2.0.0-1 1.0.0-1~nd+1 i386, amd64, sparc, armel
Ubuntu 16.04 “Xenial Xerus” (xenial) 0.8.1-1ubuntu2 1.0.0-1~nd+1+nd16.04+1 i386, amd64, sparc
Ubuntu 18.04 “Bionic Beaver” (bionic) 1.8.1-1ubuntu1    
Ubuntu 20.04 “Focal Fossa” (focal) 1.8.1-1.3ubuntu1    
Ubuntu 21.10 “Impish Indri” (impish) 1.8.1-1.5    
Ubuntu 22.04 “Jammy Jellyfish” (jammy) 1.8.1-1.5    


blog comments powered by Disqus