python-rich
Port variant v12
Summary Rich text library (3.12)
BROKEN
Package version 13.9.2
Homepage https://github.com/Textualize/rich
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants v11
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 12 OCT 2024, 19:09:16 UTC
Port created 01 JAN 2023, 17:21:46 UTC
Subpackage Descriptions
single [Supported Python Versions] [PyPI version] [Downloads] [codecov] [Rich blog] [Twitter Follow] ![Logo] [English readme] • [简体中文 readme] • [正體中文 readme] • [Lengua española readme] • [Deutsche readme] • [Läs på svenska] • [日本語 readme] • [한국어 readme] • [Français readme] • [Schwizerdütsch readme] • [हिन्दी readme] • [Português brasileiro readme] • [Italian readme] • [Русский readme] • [Indonesian readme] • [فارسی readme] • [Türkçe readme] • [Polskie readme] Rich is a Python library for _rich_ text and beautiful formatting in the terminal. The [Rich API] makes it easy to add color and style to terminal output. Rich can also render pretty tables, progress bars, markdown, syntax highlighted source code, tracebacks, and more — out of the box. ![Features] For a video introduction to Rich see [calmcode.io] by [@fishnets88]. See what [people are saying about Rich]. ## Compatibility Rich works with Linux, macOS and Windows. True color / emoji works with new Windows Terminal, classic terminal is limited to 16 colors. Rich requires Python 3.8 or later. Rich works with [Jupyter notebooks] with no additional configuration required. ## Installing Install with `pip` or your favorite PyPI package manager. ```sh python -m pip install rich ``` Run the following to test Rich output on your terminal: ```sh python -m rich ``` ## Rich Print To effortlessly add rich output to your application, you can import the [rich print] method, which has the same signature as the builtin Python function. Try this: ```python from rich import print print("Hello, [bold magenta]World[/bold magenta]!", ":vampire:", locals()) ``` ![Hello World] ## Rich REPL Rich can be installed in the Python REPL, so that any data structures will be pretty printed and highlighted. ```python >>> from rich import pretty >>> pretty.install() ``` ![REPL] ## Using the Console For more control over rich terminal content, import and construct a [Console] object. ```python from rich.console import Console console = Console() ```
Configuration Switches (platform-specific settings discarded)
PY311 OFF Build using Python 3.11 PY312 ON Build using Python 3.12
Package Dependencies by Type
Build (only) python312:dev:std
python-pip:single:v12
autoselect-python:single:std
Build and Runtime python312:primary:std
Runtime (only) python-markdown-it-py:single:v12
python-Pygments:single:v12
Download groups
main mirror://PYPIWHL/67/91/5474b84e505a6ccc295b2d322d90ff6aa0746745717839ee0c5fb4fdcceb
Distribution File Information
8c82a3d3f8dcfe9e734771313e606b39d8247bb6b826e196f4914b333b743cf1 242117 rich-13.9.2-py3-none-any.whl
Ports that require python-rich:v12
python-django-rich:v12 Extensions for using Rich with Django (3.12)
python-nb2an:v12 Netbox to Ansible config comparison tool (3.12)
python-nornir-rich:v12 Pretty display functions for nornir (3.12)