Skip to content

Python Bindings Installation

The fast-rich Python bindings provide a high-performance alternative to the standard Rich library for specific rendering tasks.

Status

⚠️ Note: The Python bindings are currently experimental and under active development. So, please wait until I explicitly release them.

Building from Source

To build and install the bindings, you need Rust and maturin installed.

  1. Install Maturin:

    pip install maturin
    

  2. Clone and Build:

    git clone https://github.com/mohammad-albarham/fast-rich
    cd fast-rich/bindings/python
    maturin develop --release
    

Usage

import fast_rich

console = fast_rich.Console()
console.print("[bold green]Hello from Rust![/]")