This release is a pre-release and may not be stable for production use.
click-tools
Installation
pip install click-tools
Usage
# filename: example.py
import click
import clickx # namespace for click-tools
@click.command(help="example for option.")
@clickx.version("pip") # print version and url from packages metadata
def cli() -> None:
click.echo(
"Call with option `--version` to print pip version and url from metadata."
)
if __name__ == "__main__":
cli()
$ python example.py --version
example.py, version 26.2.1
Changelog, https://pip.pypa.io/en/stable/news/
Documentation, https://pip.pypa.io
Homepage, https://pip.pypa.io/
Source, https://github.com/pypa/pip
Command Line Interface
Command line interface see help for more information.
$ clickx --help
Usage: clickx [OPTIONS] COMMAND [ARGS]...
Options:
--icon Show path to the package icon.
--version Show the version and exit.
--help Show this message and exit.
Commands:
icon convert a image to an icon with multiple sizes.
pre-commit-hooks
convert a picture to an icon using pillow.
- repo: https://github.com/d-chris/click-tools
rev: v0.1.0
hooks:
- id: clickx-icon
files: clickx.png$
args: ["--icon", "clickx/clickx.ico"]
PyInstaller
clickx.version(package_name=PACKAGE)uses metadata, make sure to include this into your pyinstaller command with--copy-metadata=PACKAGEoption.
to create onefile executable with pyinstaller use the build task <ctrl+shift+b> in vscode or run the following command in terminal.
poetry install --with build
poetry run vtr build-exe
Metadata
Release files for click-tools 0.1.0a0
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_tools-0.1.0a0.tar.gz | 61.6 kB | Without provenance | Details for click_tools-0.1.0a0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| click_tools-0.1.0a0-py3-none-any.whl | Python 3 | none | any | Details for click_tools-0.1.0a0-py3-none-any.whl |
Total release size: 124.2 kB
Release files / click_tools-0.1.0a0.tar.gz
| Download URL | click_tools-0.1.0a0.tar.gz |
|---|---|
| Size | 61.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
879ce7f454033cc981fbb1b92ad9fe030e2c1c17a1580ab4735eb1683e3406b5
|
|
BLAKE2b-256 checksum How to use checksums |
b1e3f09bff29df3a3c3488f3cc78edf8159b13ffc10cd59d6fd5630d38a72d44
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.5 CPython/3.13.15 Windows/11
|
Release files / click_tools-0.1.0a0-py3-none-any.whl
| Download URL | click_tools-0.1.0a0-py3-none-any.whl |
|---|---|
| Size | 62.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0a6761ff597c3cbefd8d0fc3da3ab68705428eb4de34237cf491978c53afc1e4
|
|
BLAKE2b-256 checksum How to use checksums |
19e156e746f1229d66722092163ae59f366e104f7fa87440fdd5f54a6b630aeb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.5 CPython/3.13.15 Windows/11
|
Security for click-tools 0.1.0a0
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.