Fuzzy subcommand matching for click
Project description
Fuzzy Commands for Click
Fuzzy subcommand matching for click
Allows use of automatic short aliases and matching small typos:
$ command h
WARNING: Assuming 'h' is short for 'hello'
Hello world!
$ command helol
WARNING: Assuming 'helol' is slang for 'hello'
Hello world!
Install
$ pip install click-fuzzy
Usage
from click_fuzzy import FuzzyCommandGroup
@click.group(cls=FuzzyCommandGroup)
def main(...):
...
That's it.
License
Fuzzy Commands is copyright Amethyst Reese, and licensed under the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
click_fuzzy-0.1.tar.gz
(7.7 kB
view details)
Built Distribution
File details
Details for the file click_fuzzy-0.1.tar.gz
.
File metadata
- Download URL: click_fuzzy-0.1.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ccb0ca11b0a392f761584a38a2e76f14a4c7694182764f2e0d4d9cdb3b70fae4 |
|
MD5 | a049d41f15fe7b615b0e47870e42fe93 |
|
BLAKE2b-256 | 0e3f71a45ac13fd06611057a02ad5173de208d382f871b23a5dfa1b10dc80192 |
File details
Details for the file click_fuzzy-0.1-py3-none-any.whl
.
File metadata
- Download URL: click_fuzzy-0.1-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b1acf05c83a78eb907ac0d6ad3c5f058382288f969f2db3457db75c7a56bc91 |
|
MD5 | e01950eaa20357ce640345347afa181f |
|
BLAKE2b-256 | f89831e6693568cae3ffdc63856bda652435590a01c726a947e9413e2242b2f6 |