Skip to main content

🌈 Drop-in replacement for Click to make user-friendly and colorful CLI

Project description

Click Extra

Last release Python versions Downloads Unittests status Coverage status Documentation status DOI

What is Click Extra?

It should be easy to write a good CLI in Python. Click makes it so. But there is still hundrends of tweaks to implement by yourself to have a user-friendly CLI.

Click Extra is a ready-to-use wrapper around Click to make your CLI look good and behave well. It is a drop-in replacement with good defaults that saves lots of boilerplate code and frustration by making all parts working together.

It also comes with workarounds and patches that have not reached upstream yet (or are unlikely to).

Who is this for?

Anyone building a CLI who doesn't have time to assemble the pieces from scratch:

  • You use Click and want professional defaults without the boilerplate.
  • You're a security researcher turning a proof-of-concept into a presentable tool to hand off, demo, or attach to an advisory.
  • You're a DevOps engineer or sysadmin whose one-off script grew into a team tool and needs --help, --verbose, --config, and colored output.

Click Extra's defaults-first design means one decorator gets you there. See the 30-second quick start.

Demo

You can try Click Extra right now in your terminal, without installing any dependency or virtual env thanks to uvx:

$ uvx click-extra

This is a great way to play with Click Extra and check that it runs fine on your system, and renders properly in your terminal.

Example

It transforms this vanilla click CLI:

click CLI help screen

Into this:

click-extra CLI help screen

To undestrand how we ended up with the result above, go read the tutorial.

Features

Used in

Check these projects to get real-life examples of click-extra usage:

Feel free to send a PR to add your project in this list if you are relying on Click Extra in any way.

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_extra-7.14.0.tar.gz (144.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

click_extra-7.14.0-py3-none-any.whl (159.3 kB view details)

Uploaded Python 3

File details

Details for the file click_extra-7.14.0.tar.gz.

File metadata

  • Download URL: click_extra-7.14.0.tar.gz
  • Upload date:
  • Size: 144.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for click_extra-7.14.0.tar.gz
Algorithm Hash digest
SHA256 7e2f83aa631219bcff414208e20bd23d3f1bf92802e2820b3c49a9a87fa5f771
MD5 2d4d7aa84caba89a4e4eaf5e2872dda9
BLAKE2b-256 dc44e8200fc42682c544c4597f4674910fad1358af63c5b6d45bf89d20a18708

See more details on using hashes here.

File details

Details for the file click_extra-7.14.0-py3-none-any.whl.

File metadata

  • Download URL: click_extra-7.14.0-py3-none-any.whl
  • Upload date:
  • Size: 159.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for click_extra-7.14.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3aaa50566d44db263db3aed02552c89950b1d09f01df300c041907bcf29882e6
MD5 cccbf74a2de5857ff2fcde8a79452866
BLAKE2b-256 dc50f5159c0fe0a59b7ad8c1fb12e4133e2b073bc99778d19ab9b111378117d4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page