rich-click
Format click help output nicely with rich.
rich-click is a powerful Python library that transforms the appearance of command-line interfaces by bringing beautiful, colorful formatting to Click-based applications. I developed rich-click to address the plain, monochrome help text that most Click-based command-line tools produce—something that had been bothering me for years.
rich-click serves as a drop-in replacement for Click, leveraging the rich library to render help output with colour, borders, and visual enhancements that make command-line tools more accessible and user-friendly.
To use rich-click, simply just change import click to import rich_click as click and suddenly your CLI gets beautifully formatted help output with boxes, colors, and clear visual hierarchy.
What started as a personal tool to scratch my own itch accidentally became popular, growing to over 1 million weekly downloads. rich-click has evolved far beyond basic help formatting to include features like customizable styling, argument display options, command grouping and sorting, export to HTML and SVG formats, and even a standalone CLI tool that can enhance any existing Click application without code changes. The project includes a live style editor, comprehensive documentation, and has attracted a growing community of contributors who have added testing, type hinting, performance improvements, and new features.
When the project’s unexpected popularity outgrew my ability to maintain it alone, Daniel Reeves joined as a core maintainer, bringing crucial expertise in testing, documentation, and project infrastructure that has helped rich-click continue to evolve and serve its growing user base.
For more information, you can explore the rich-click documentation and source code on GitHub. See also the PyCon 2024 talk that I gave about rich-click.