🔥🍀 PyRatatui — Python bindings for the Ratatui terminal UI framework 🤩✨

Wait 5 sec.

PyRatatui — Python bindings for the Ratatui terminal UI framework Hi everyone 👋, I recently built PyRatatui, a Python binding for the Ratatui terminal UI framework from the Rust ecosystem. The goal is to make it easy to build fast and structured terminal user interfaces from Python while keeping the performance benefits of Ratatui. This project is focused purely on terminal interfaces *(TUI). There is no GUI component — it runs directly in the *terminal** and is intended for building beautiful dashboards, CLI tools, monitoring interfaces, and other interactive command‑line applications. Example: ```python from pyratatui import Terminal, Paragraph, Block, Style, Color with Terminal() as term: while True: def ui(frame): frame.render_widget( Paragraph.from_string("Hello, pyratatui! Press q to quit.") .block(Block().bordered().title("Hello World")) .style(Style().fg(Color.cyan())), frame.area, ) term.draw(ui) ev = term.poll_event(timeout_ms=100) if ev and ev.code == "q": break ``` What the project aims to provide: Pythonic API for building terminal UIs Typed interfaces that work well with IDEs Rust backend performance via Ratatui Widgets such as paragraphs, tables, charts, blocks and layouts Event handling and rendering loop similar to Ratatui Installation: #bash pip install pyratatui Repository https://github.com/pyratatui/pyratatui Examples https://github.com/pyratatui/pyratatui/tree/main/examples Documentation https://pyratatui.github.io/pyratatui I would appreciate feedback from people who regularly build command‑line tools or TUIs. Suggestions, issues, or ideas for additional widgets are welcome. Note: This software's code is partially AI-generated, but it has been reviewed and refined manually. Thanks for taking a look.   submitted by   /u/Klutzy_Bird_7802 [link]   [comments]