Skip to main content

PS> click-pwsh

Supported Python Versions PyPI version

A click extension to support shell completion for PowerShell 7.

This extension is written based on click 8.x (i.e., the rewritten click's completion system). Be aware of your click version before using it.

Hope it can provide smooth experiences for Windows users. d(`・∀・)b

Installation

You can get the package from PyPI:

PS> pip install click-pwsh

Quickstart

Add the following code at the top of your script:

from click_pwsh import support_pwsh_shell_completion
support_pwsh_shell_completion()

And run the following command to install the shell completion:

PS> python -m click_pwsh install foo-bar
Complete.

where foo-bar is your command name.

Then ... all done. Re-open PowerShell 7 and enjoy the shell completion!

Update Shell Completion Scripts

If you upgrade click-pwsh, you can use the following command to update your shell completion scripts:

PS> python -m click_pwsh update foo-bar
Complete.

where foo-bar is your command name whose shell completion scripts have already installed before.

Metadata

Release files for click-pwsh 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 click-pwsh 0.9.7
File Size Uploaded
click_pwsh-0.9.7.tar.gz 4.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for click-pwsh 0.9.7
File Interpreter ABI Platform
click_pwsh-0.9.7-py3-none-any.whl Python 3 none any Details

Total release size: 9.6 kB

Release files / click_pwsh-0.9.7.tar.gz

Download URL click_pwsh-0.9.7.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
27dfb99b4114f3580b40c8e24dca313c2fc29c33f15b0948bf8018a6a7f8e1f6
BLAKE2b-256 checksum
How to use checksums
b1e1b1edde4e54718d508aa36bbef52d40a833138c74c3237bf028222d5eb0b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.8

Release files / click_pwsh-0.9.7-py3-none-any.whl

Download URL click_pwsh-0.9.7-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aa83917e4e643e2b267b31ee1bb877c11cddbf347a1d362b39f6d3db99a96639
BLAKE2b-256 checksum
How to use checksums
333c9fa125106a75fab47567d2f58fa26b055f0188095df6c298f48cc3563f3b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.8

Release history Release notifications | RSS feed

This release

0.9.7 This release

2 release files

0.9.6

2 release files

0.9.5

2 release files

0.9.4

2 release files

0.9.3

2 release files

0.9.2

2 release files

0.9.0

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