talira

Rich text and beautiful formatting in the terminal for Python

open sourceMITfree

Rich is a Python library for rich text and formatting in the terminal. Its API makes it easy to add colour and style to output, and it renders tables, progress bars, Markdown, syntax-highlighted source code and readable tracebacks out of the box. It works on Linux, macOS and Windows, with true colour and emoji in the new Windows Terminal, and needs Python 3.8 or later.

Problems it solves

  • show a progress bar for a long-running Python script
  • print nicely formatted tables in my Python command-line tool
  • make Python tracebacks easier to read in the terminal

Features

  • coloured and styled terminal text
  • tables
  • progress bars
  • Markdown rendering
  • syntax highlighting
  • pretty tracebacks