🌐
Rich
rich.readthedocs.io › en › latest › introduction.html
Introduction — Rich 14.1.0 documentation
Rich is a Python library for writing rich text (with color and style) to the terminal, and for displaying advanced content such as tables, markdown, and syntax highlighted code.
🌐
Ewels
ewels.github.io › rich-click › latest
rich-click - rich-click
Rich is a "Python library for rich text and beautiful formatting in the terminal".
🌐
Medium
medium.com › @ahmedharabi › get-started-with-the-python-rich-library-2736b1b57941
Get Started with the Python rich Library | by Ahmed Harabi | Medium
July 4, 2024 - Get Started with the Python rich Library The rich library is a powerful Python tool for creating visually appealing terminal output. It supports rich text formatting, tables, markdown, syntax …
🌐
PyPI
pypi.org › project › rich-click
rich-click · PyPI
Rich is a "Python library for rich text and beautiful formatting in the terminal".
🌐
Anaconda.org
anaconda.org › conda-forge › rich
rich - conda-forge | Anaconda.org
Rich is a Python library for rich text and beautiful formatting in the terminal.
Find elsewhere
🌐
Blue Book
lyz-code.github.io › blue-book › rich
Rich - The Blue Book
Rich is a Python library for rich text and beautiful formatting in the terminal.
🌐
GeeksforGeeks
geeksforgeeks.org › python › installing-and-using-rich-package-in-python
Installing and Using Rich Package in Python - GeeksforGeeks
July 23, 2025 - Rich is a python package, so we can install it with the pip command, you can directly use the pip install command to install rich but if you don't want to mess up your global python environment, you can use a virtualenv to try out and play with ...
🌐
YouTube
youtube.com › watch
How to Use the Rich library for colorful Python command-line interfaces - YouTube
Command-line applications written in Python don't have to look drab and minimal. The rich library for Python lets you design textual interfaces with eye-catc...
Published: January 9, 2024
🌐
PyPI
pypi.org › project › rich-cli
rich-cli · PyPI
Rich-CLI may be installed as a Python package, either using pip: python -m pip install rich-cli · Or using conda or mamba: mamba install -c conda-forge rich-cli · Once installed you should have the rich command in your path. Run the following to see usage / help: rich --help ·
      » pip install rich-cli
    
Published: Jul 04, 2025
Version: 1.8.1
🌐
Real Python
realpython.com › python-rich-package
The Python Rich Package: Unleash the Power of Console Text – Real Python
July 3, 2026 - Rich is a powerful library for constructing text-based user interfaces (TUIs) using Python. With it, you can make your code more readable by pretty-printing complex data structures, and you can make your app more attractive for your user with ...
🌐
Rich
rich.readthedocs.io › en › latest › style.html
Styles — Rich 14.1.0 documentation
You can disable inheriting the default theme by setting inherit=False on the rich.theme.Theme constructor. To see the default theme, run the following commands: python -m rich.theme python -m rich.default_styles
🌐
Medium
medium.com › @jainsnehasj6 › a-practical-guide-to-rich-12-ways-to-instantly-beautify-your-python-terminal-3a4a3434d04a
A Practical Guide to Rich: 12 Ways to Instantly Beautify Your Python Terminal | by Sneha Jain | Medium
June 26, 2025 - Welcome back to the series where we explore Python libraries that not only solve real problems but make your code a joy to work with. Today, we’re diving into Rich — a Python library that brings color, formatting, tables, progress bars, and more to your terminal.
🌐
Jslvtr
jslvtr.com › posts › better-python-console-apps-with-rich
Better Python console apps with Rich
August 18, 2020 - Rich is a Python library that changes that completely.
🌐
YouTube
youtube.com › real python
Improving Python Console Output With Rich - YouTube
This is a preview of the video course "Unleashing the Power of the Console With Rich". Python’s Rich package is a versatile tool kit that enables you to gene...
Published: February 22, 2024
Views: 9K
Top answer
1 of 2
7

Rich performs highlighting on the output, for numbers, strings, data etc. In your example it is highlighting braces, which can be helpful when you print data structures.

You can disable this feature if you construct a Console object and set highlight=False on the print method.

Here's an example:

from rich.console import Console
console = Console()
console.print('[[green]1[/green]] Create new password', highlight=False)

See the docs on highlighting for the details.

2 of 2
0

As the op is open to other ways, here is my way of doing..

Initiate a class with standard terminal color codes.

class bcolors:

    ResetAll = "\033[0m"

    Bold       = "\033[1m"
    Dim        = "\033[2m"
    Underlined = "\033[4m"
    Blink      = "\033[5m"
    Reverse    = "\033[7m"
    Hidden     = "\033[8m"

    ResetBold       = "\033[21m"
    ResetDim        = "\033[22m"
    ResetUnderlined = "\033[24m"
    ResetBlink      = "\033[25m"
    ResetReverse    = "\033[27m"
    ResetHidden     = "\033[28m"

    Default      = "\033[39m"
    Black        = "\033[30m"
    Red          = "\033[31m"
    Green        = "\033[32m"
    Yellow       = "\033[33m"
    Blue         = "\033[34m"
    Magenta      = "\033[35m"
    Cyan         = "\033[36m"
    LightGray    = "\033[37m"
    DarkGray     = "\033[90m"
    LightRed     = "\033[91m"
    LightGreen   = "\033[92m"
    LightYellow  = "\033[93m"
    LightBlue    = "\033[94m"
    LightMagenta = "\033[95m"
    LightCyan    = "\033[96m"
    White        = "\033[97m"

    BackgroundDefault      = "\033[49m"
    BackgroundBlack        = "\033[40m"
    BackgroundRed          = "\033[41m"
    BackgroundGreen        = "\033[42m"
    BackgroundYellow       = "\033[43m"
    BackgroundBlue         = "\033[44m"
    BackgroundMagenta      = "\033[45m"
    BackgroundCyan         = "\033[46m"
    BackgroundLightGray    = "\033[47m"
    BackgroundDarkGray     = "\033[100m"
    BackgroundLightRed     = "\033[101m"
    BackgroundLightGreen   = "\033[102m"
    BackgroundLightYellow  = "\033[103m"
    BackgroundLightBlue    = "\033[104m"
    BackgroundLightMagenta = "\033[105m"
    BackgroundLightCyan    = "\033[106m"
    BackgroundWhite        = "\033[107m"

Your Program

print(f"[{bcolors.Green}1{bcolors.ResetAll}] Create new password")
print('[2] See existing passwords')
print('[3] Exit')

Output:

🌐
Jeff
jeff.glass › project › richdemo
Rich on PyScript
Rich is a Python library for writing rich text (with color and style) to the terminal, and for displaying advanced content such as tables, markdown, and syntax highlighted code.
🌐
Rich
rich.readthedocs.io › en › latest › pretty.html
Pretty Printing — Rich 14.1.0 documentation
In addition to syntax highlighting, Rich will format (i.e. pretty print) containers such as lists, dicts, and sets. Run the following command to see an example of pretty printed output: python -m rich.pretty · Note how the output will change to fit within the terminal width.