python-optcomplete - Automatic Shell Completion Support for Scripts Using Optparse

Property Value
Distribution openSUSE Leap 15.0
Repository Network Utilities all
Package name python-optcomplete
Package version 1.2_devel
Package release lp150.29.1
Package architecture noarch
Package type rpm
Installed size 88.63 KB
Download size 29.18 KB
Official Mirror
This module provide automatic bash completion support for programs that use the
optparse module.  The premise is that the optparse options parser specifies
enough information (and more) for us to be able to generate completion strings
esily.  Another advantage of this over traditional completion schemes where the
completion strings are hard-coded in a separate bash source file, is that the
same code that parses the options is used to generate the completions, so the
completions is always up-to-date with the program itself.
In addition, we allow you specify a list of regular expressions or code that
define what kinds of files should be proposed as completions to this file if
needed.  If you want to implement more complex behaviour, you can instead
specify a function, which will be called with the current directory as an
You need to activate bash completion using the shell script function that comes
with optcomplete (see for more details).


Package Version Architecture Repository
python-optcomplete-1.2_devel-lp150.1.3.noarch.rpm 1.2_devel noarch openSUSE Oss
python-optcomplete - - -


Name Value
python = 2.7
python(abi) = 2.7


Name Value
config(python-optcomplete) = 1.2_devel-lp150.29.1
python-optcomplete = 1.2_devel-lp150.29.1


Type URL
Binary Package python-optcomplete-1.2_devel-lp150.29.1.noarch.rpm
Source Package python-optcomplete-1.2_devel-lp150.29.1.src.rpm

Install Howto

  1. Add the Network Utilities repository:
    # zypper addrepo network-utilities
  2. Install python-optcomplete rpm package:
    # zypper install python-optcomplete




2017-07-21 -
- clean up spec file
- fix build in tumbleweed
2014-12-28 - Led <>
- remove unneeded shebang in scripts
- add patches:
+ optcomplete-1.2-devel-fix-shebang.patch
2011-12-09 -
- fix license to be in format
2010-03-24 -
- Improved package and added bash completion code in
/etc/bash_completion.d/ and added examples and documentation
2010-03-24 -
- Initial version 1.2_devel

See Also

Package Description
python2-ftputil-3.4-lp150.8.1.noarch.rpm High-level FTP client library (virtual file system and more) for Python
python2-gdata-2.0.18-lp150.53.1.noarch.rpm Python library to access data through Google Data APIs
python2-net-snmp-5.8-lp150.31.1.x86_64.rpm The Python 'netsnmp' module for the Net-SNMP
python2-oauth2-1.9.0.post1-lp150.12.1.noarch.rpm A fully tested, abstract interface to creating OAuth clients and servers
python2-pyinotify-0.9.6-lp150.38.1.noarch.rpm Python module for watching filesystems changes
python2-simplejson-3.16.1-lp150.76.1.x86_64.rpm Extensible JSON encoder/decoder for Python
python2-tweepy-3.6.0-lp150.19.1.noarch.rpm Twitter library for python
python2-youtube-dl-2018.11.18-lp150.221.1.noarch.rpm A python module for downloading from video sites for offline watching
python3-ftputil-3.4-lp150.8.1.noarch.rpm High-level FTP client library (virtual file system and more) for Python
python3-gdata-2.0.18-lp150.53.1.noarch.rpm Python library to access data through Google Data APIs
python3-net-snmp-5.8-lp150.31.1.x86_64.rpm The Python 3 'netsnmp' module for the Net-SNMP
python3-pyinotify-0.9.6-lp150.38.1.noarch.rpm Python module for watching filesystems changes
python3-simplejson-3.16.1-lp150.76.1.x86_64.rpm Extensible JSON encoder/decoder for Python
python3-tweepy-3.6.0-lp150.19.1.noarch.rpm Twitter library for python
python3-youtube-dl-2018.11.18-lp150.221.1.noarch.rpm A python module for downloading from video sites for offline watching