Skip to main content
https://img.shields.io/pypi/v/auto-argcomplete.svg

auto-argcomplete is automatic shell completion generator for script which uses argparse.

The behavior is like:

$ python example/simple_script.py <TAB>
$ python example/simple_script.py --
--dry-run   --help      --kick-off  --module

If you’re using zsh:

% python example/simple_script.py --
--dry-run   -- display what to do
--help      -- show this help message and exit
--module    -- specify module name
--kick-off

example/simple_script.py is:

import argparse

parser = argparse.ArgumentParser()
parser.add_argument('-m', '--module', help='specify module name')
parser.add_argument('-n', '--dry-run', help='display what to do')
parser.add_argument('-k', '--kick-off')
parser.parse_args()

Nothing to import in the script! :smile:

auto-argcomplete can automatically understand the output of --help option, so automatically supports all script which use argparse.

Installation

$ pip install auto-argcomplete

Test

$ nosetests -v auto_argcomplete

License

Copyright (C) 2015 Kentaro Wada
Released under the MIT license

Release files for auto-argcomplete 0.9.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for auto-argcomplete 0.9.7
File Size Uploaded
auto-argcomplete-0.9.7.tar.gz 9.9 kB Details

Release files / auto-argcomplete-0.9.7.tar.gz

Download URL auto-argcomplete-0.9.7.tar.gz
Size 9.9 kB
Tags Source
SHA-256 checksum
How to use checksums
6ca055d2758c98ed032bb7af2cb26326dacccc14da93f7c0841dde776ab3cc3f
BLAKE2b-256 checksum
How to use checksums
61cf8cb2b15c16537f879512f0ae7e7ea9b7c8bac7f2491dcd98a84f36941420
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.9.7 This release

1 release file

0.9.6

1 release file

0.9.4.8

1 release file

0.9.4.7

1 release file

0.9.4.6

1 release file

0.9.4.5

1 release file

0.9.4

1 release file

0.9.3

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page