Click app skeleton
Project description
Tools |
Result |
|---|---|
Coverage |
Description
Library to build a CLI with a well defined skeleton and helpers, including :
completion
real –help eagerness
help and version colors
readme generation
-V / –version / version subcommand
-h / –help / help subcommand
subgroup creation and registering made easier
EXAMPLE CLI
Commands
Usage: example-cli [OPTIONS] COMMAND [ARGS]...
Simple CLI example
Options:
--global-example TEXT A global option
--option-one TEXT First option
--option-two TEXT Second option
-V, --version Show the version and exit.
-h, --help Show this message and exit.
Commands:
abort Generates an exception
expanded-path Expand option path
help Print help
readme (doc) Generates a README.rst
subgroup (subgroup-alias) A sub group
version Print version
example-cli abort
Usage: example-cli abort [OPTIONS]
Generates an exception on purpose (test)
Options:
-h, --help Show this message and exit.
example-cli expanded-path
Usage: example-cli expanded-path [OPTIONS]
Command with expanded path option
Options:
--file PATH File path which expands
-h, --help Show this message and exit.
example-cli help
Usage: example-cli help [OPTIONS]
Print help
Options:
-h, --help Show this message and exit.
example-cli readme
Usage: example-cli readme [OPTIONS]
Uses gen_doc click-skeleton helper to generates a complete readme
Options:
--output [rst|markdown] README output format [default: rst]
-h, --help Show this message and exit.
example-cli subgroup
Usage: example-cli subgroup [OPTIONS] COMMAND [ARGS]...
I am a subgroup!
Options:
-h, --help Show this message and exit.
Commands:
help Print help
subcommand A sub command
example-cli subgroup subcommand
Usage: example-cli subgroup subcommand [OPTIONS]
I am a subcommand!
Options:
--myoptions TEXT A splitted option
-h, --help Show this message and exit.
example-cli version
Usage: example-cli version [OPTIONS]
Print version, equivalent to -V and --version
Options:
-h, --help Show this message and exit.
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_skeleton-0.33.1.tar.gz
(43.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file click_skeleton-0.33.1.tar.gz.
File metadata
- Download URL: click_skeleton-0.33.1.tar.gz
- Upload date:
- Size: 43.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d550de0039e0d4bb212d049e6bbd1c1b9de0f03eb36e8e806300c174498eebfb
|
|
| MD5 |
703f09d2008fb8909b2d6a7c8ece69fd
|
|
| BLAKE2b-256 |
61ad9f414dcc93ddad68fe1101ce9eb3a49c7b9cf34eed6d3ee1132f09b58c74
|
File details
Details for the file click_skeleton-0.33.1-py3-none-any.whl.
File metadata
- Download URL: click_skeleton-0.33.1-py3-none-any.whl
- Upload date:
- Size: 16.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
89f19fb180c27ccc7c2db29564fdd58a41cfb28ff74131949d48f6c1a88a94cf
|
|
| MD5 |
27b6a150d6438f3fec26744d5bf607b8
|
|
| BLAKE2b-256 |
faebf8c7c76976be32193b7a9d2ad8f4cfeef03ce81f6a1d8219158b2d129cb8
|