click-command-tree
click-command-tree is a click plugin to show the command tree of your CLI
Installation
pip install click-command-tree
This is tested against Python versions 3.8 - 3.12 and (latest major release) click versions 5.x, 6.x, 7.x, 7.1.x, 8.0.x, and 8.1.x.
Example
from pkg_resources import iter_entry_points
import click
from click_plugins import with_plugins
@with_plugins(iter_entry_points('click_command_tree'))
@click.group()
def root():
pass
@root.group()
def command_group():
pass
@command_group.command()
def nested_command():
pass
@root.command()
def standard_command():
pass
if __name__ == '__main__':
root()
↪ python example.py --help
Usage: example.py [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
Commands:
command-group
standard-command
tree show the command tree of your CLI
↪ python example.py tree
root
├── command-group
│ └── nested-command
├── standard-command
└── tree - show the command tree of your CLI
Releasing:
- update
__version__variable, and insetup.py - git commit new version
- make publish-dist
Metadata
Release files for click-command-tree 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| click_command_tree-1.2.0.tar.gz | 3.3 kB | Without provenance | Details for click_command_tree-1.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| click_command_tree-1.2.0-1-py3-none-any.whl | Python 3 | none | any | Details for click_command_tree-1.2.0-1-py3-none-any.whl |
Total release size: 7.2 kB
Release files / click_command_tree-1.2.0.tar.gz
| Download URL | click_command_tree-1.2.0.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3e7f5db9f3eccc2eccab40f7979355efe6d5123c958b748dee9c242a38364d6c
|
|
BLAKE2b-256 checksum How to use checksums |
9547fd73ca0ba632a9c45610839a493825834dd74fdc9e2e2d1ffc6416932161
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.8.18
|
Release files / click_command_tree-1.2.0-1-py3-none-any.whl
| Download URL | click_command_tree-1.2.0-1-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5213397dc01241db0e7757d34363cd74161027c6141d75973bc1ae65b659449f
|
|
BLAKE2b-256 checksum How to use checksums |
e1986f560302c8d41bfeb22a9f6d7291ab1687386bae34636e5756aaa527c4b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.8.18
|
Security for click-command-tree 1.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.