Skip to main content

Click Completion Installer

Helps setting up click-completion when a pip package with click is installed. Supports

  • bash
  • fish (currently not implemented)
  • zsh (currently not implemented)

Using in your setup.py (setuptools)

  • append as requirement to your setup.py
REQUIRED = [ 'click', 'inquirer', 'arrow', 'pathlib', 'click-completion-helper', 'click-default-group' ]
...

class InstallCommand(install):
    def run(self):
        install.run(self)
        self.setup_click_autocompletion()

    def setup_click_autocompletion(self):
        for console_script in setup_cfg['options']['entry_points']['console_scripts']:
            console_call = console_script.split("=")[0].strip()

            # if click completion helper is fresh installed and not available now
            subprocess.run([
                "click-completion-helper",
                "setup",
                console_call,
            ])


setup(
    ...
    setup_requires=['click-completion-helper', ...],

    ...
)

or in setup.cfg:


[options]
setup_requires =
  click-completion-helper

Release files for click-completion-helper 0.0.10

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

Source distribution (sdist)

Source distribution for click-completion-helper 0.0.10
File Size Uploaded
click-completion-helper-0.0.10.tar.gz 4.9 kB Details

Release files / click-completion-helper-0.0.10.tar.gz

Download URL click-completion-helper-0.0.10.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b2cd9a6c76dbd4ca2d84c8dd5b6197534683b652aa1850d08edc4c366bf7a6d4
BLAKE2b-256 checksum
How to use checksums
c3680546d7b7081cc773b2a66b5b81d68e949955a14fc7051293bb0bfba55bb8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.7

Release history Release notifications | RSS feed

This release

0.0.10 This release

1 release file

0.0.9

1 release file

0.0.8

1 release file

0.0.7

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

2 release files

0.0.2

2 release files

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