Skip to main content

rs-rich (Python)

Rich-compatible terminal rendering for Python, backed by rs-rich, a Rust port of Rich.

pip install rs-rich

Documentation: https://buchochelliq-labs.github.io/rs-rich-cli/python/, with a getting started guide and an API reference for every module.

Move a Rich program over by changing its imports:

from rs_rich.console import Console   # was: from rich.console import Console
from rs_rich.table import Table       # was: from rich.table import Table

table = Table(title="Star Wars Movies")
table.add_column("Released", justify="right", style="cyan", no_wrap=True)
table.add_column("Title", style="magenta")
table.add_row("Dec 20, 2019", "Star Wars: The Rise of Skywalker")

console = Console()
console.print(table)

All rendering happens in Rust. The Python package only maps Rich's classes and arguments onto the Rust ones, so output matches Rich 15.0.0 byte for byte (the documentation's Python section lists the few known differences). What the port cannot do (Jupyter output, a handful of Table options) raises NotImplementedError rather than rendering something different.

What is in it

Modules
All of Rich's API rs_rich (print, print_json, inspect, ...), console, text, style, color, theme, markup, emoji, segment, measure, box, errors, terminal_theme, table, panel, rule, padding, align, constrain, styled, bar, spinner, columns, containers, layout, tree, markdown, syntax, pretty, json, highlighter, traceback, live, live_render, status, screen, pager, progress, progress_bar, prompt, logging
rs-rich's extensions rs_rich.ext and its 38 submodules: diagnostics, structured data, diffs and test reports, transforms, workflows, tables and badges, terminal capabilities, inspectors, live layouts, CLI docs, testing and QA
Images and diagrams rs_rich.art (images, Sixel, FIGlet, GIFs, image diffs; Pillow images when Pillow is installed), rs_rich.mermaid
Plugins rs_rich.plugins: write highlighters, code highlighters, themes, boxes, renderers, fence renderers and transforms in Python, checked by the Rust plugin host
The command line python -m rs_rich and the rich-rs script: rs-rich's rich command

Your own classes render through __rich__, __rich_console__ and __rich_measure__, anywhere a renderable goes.

The lumis (tree-sitter) code highlighter is a separate build (maturin build --features lumis), and Mermaid's mmdc backend needs --features mmdc and Mermaid's own CLI.

Versions

The package has its own version (0.0.1) and is released from python-v… tags. It bundles the rs-rich Rust crate from the same commit.

Metadata

Release files for rs-rich 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rs-rich 0.0.1
File Size Uploaded
rs_rich-0.0.1.tar.gz 2.2 MB Details

Built distributions (wheels)

Table of built distributions (wheels) for rs-rich 0.0.1
File
rs_rich-0.0.1-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details
rs_rich-0.0.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.9 abi3 Linux glibc 2.17+ x86-64 Details
rs_rich-0.0.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.9 abi3 Linux glibc 2.17+ ARM64 Details
rs_rich-0.0.1-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details
rs_rich-0.0.1-cp39-abi3-macosx_10_12_x86_64.whl CPython 3.9 abi3 macOS 10.12+ x86-64 Details

Total release size: 48.1 MB

Release files / rs_rich-0.0.1.tar.gz

Download URL rs_rich-0.0.1.tar.gz
Size 2.2 MB
Tags Source
SHA-256 checksum
How to use checksums
a818e8db94dcbc019fce6879261f30a956bebbdbd23a62febc512f4f58153c78
BLAKE2b-256 checksum
How to use checksums
f617a0c3e6377b3856544e5bf2d1120eaf32f5db18f5ba7a96c61dd74e19ba0a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.

Transparency log

Release files / rs_rich-0.0.1-cp39-abi3-win_amd64.whl

Download URL rs_rich-0.0.1-cp39-abi3-win_amd64.whl
Size 8.7 MB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
d5602fb85c9dad9bc10ff179cd97c7d64d18841585df0d194e26e988668b54e9
BLAKE2b-256 checksum
How to use checksums
74cd49f2bd6aca458890a66ec54b581e4417e939e4c326eac2919f1f8865e09b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.

Transparency log

Release files / rs_rich-0.0.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL rs_rich-0.0.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 9.6 MB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
7474d45e5bf8fedab83f5c2f190753ec0af2a25dd8baba9fcc309bc3cc580a45
BLAKE2b-256 checksum
How to use checksums
212ed90d6d3105c06f9835226c02611ed12058500bb183d96e8e8f19872a2c5a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.

Transparency log

Release files / rs_rich-0.0.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL rs_rich-0.0.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 9.8 MB
Tags CPython 3.9 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
8ffb862bc27fe5a6c476856791a77fc39171c2df339244df0b72341db7a69f49
BLAKE2b-256 checksum
How to use checksums
8ef13daf5fbfbb8168c48bd62b0fcf7a1ecc96917669864c59f612c8ea4ae3cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.

Transparency log

Release files / rs_rich-0.0.1-cp39-abi3-macosx_11_0_arm64.whl

Download URL rs_rich-0.0.1-cp39-abi3-macosx_11_0_arm64.whl
Size 8.8 MB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
c4e0df74d03de67df56f0144faeccd1f26023394fe3d65a86618a576b50364de
BLAKE2b-256 checksum
How to use checksums
2527fbdaa5f07100903b912c11e6a0fd91536d7ca6c9077496caf8b3257964b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.

Transparency log

Release files / rs_rich-0.0.1-cp39-abi3-macosx_10_12_x86_64.whl

Download URL rs_rich-0.0.1-cp39-abi3-macosx_10_12_x86_64.whl
Size 9.0 MB
Tags CPython 3.9 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
13c15bff54b856b09380769f9692cef219deb2f6a4f4360b5ce2d78adc87d829
BLAKE2b-256 checksum
How to use checksums
56afcca169c518026e95f7b147bce218131433361c6799225f0ea2f89c3612b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 26, 2026.

Transparency log

Release history Release notifications | RSS feed

0.0.4

6 release files

0.0.3

6 release files

0.0.2

6 release files

This release

0.0.1 This release

6 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page