Skip to main content

Modern pure-Python cross-platform TUI framework with RAD designer, themes, mouse support, embedded terminals, and rich widgets

Project description

RunTUI — Modern Terminal UI Framework for Python

Build beautiful, interactive, mouse-aware terminal applications in pure Python — no curses, no ncurses, no external dependencies.

runtui in action — animated demo

runtui is a full-featured, cross-platform TUI (Text User Interface) library written in 100% pure Python.
It brings modern desktop-like experience into your terminal: windows, dialogs, forms, image rendering, embedded terminals, mouse support, theming, layout managers and even a visual RAD (Rapid Application Development) designer.

Works seamlessly on Linux, macOS, and Windows

✨ Highlights

  • Pure Python — zero compiled dependencies
  • Cross-platform (Linux, macOS, Windows)
  • Rich set of widgets — Button, Input, Password, TextArea, Dropdown, ListBox, CheckBox, Radio, Calendar, ColorPicker, ProgressBar, Image, real Terminal, etc.
  • Multiple layout engines: Absolute, Box, Dock, Grid
  • Theme engine with built-in themes: Dark, Light, Nord, Solarized, Turbo Vision / Borland style
  • Mouse support (click, drag, scroll, hover)
  • Window manager with floating & tiled windows + taskbar
  • Dialogs: MessageBox, File Open/Save, Custom Forms
  • Visual RAD designer (rad_designer.py) — drag & drop UI building + code generation
  • Embedded terminal widget with PTY support (run vim, htop, bash, python REPL, … inside your app!)
  • Clean event loop, timers, key bindings, context menus

Installation

pip install runtui

Run

python -m runtui.tui_os
python -m runtui.rad_designer

More examples in the examples/ folder:

  • cal.py — Calendar
  • calc.py — Calculator
  • chatbox.py — LLM Chat App
  • clock.py — A basic clock program
  • demo_app.py — widget showcase
  • mine.py - window's mine game
  • notes.py — mac os like personal notes
  • rad_designer.py — visual designer (very cool!)
  • puzzle.py — mac os like puzzle game
  • tui_os.py — tui desktop / OS-like interface

It is highly recommended to run everything inside tui_os.py by browse these python files in Finder.

Why choose runtui over other TUI libraries?

Feature runtui Textual urwid py_cui rich + textual
Pure Python
Cross-platform (good)
Mouse support
Built-in themes ✓ (many) ✓ (CSS)
Embedded terminal widget ✓ (PTY)
Visual RAD designer
Image rendering
Floating windows + taskbar
LLM Chat App

License

MIT


Made with ❤️ in the terminal
Start building your next TUI masterpiece today!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

runtui-0.1.3.tar.gz (20.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

runtui-0.1.3-py3-none-any.whl (164.9 kB view details)

Uploaded Python 3

File details

Details for the file runtui-0.1.3.tar.gz.

File metadata

  • Download URL: runtui-0.1.3.tar.gz
  • Upload date:
  • Size: 20.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for runtui-0.1.3.tar.gz
Algorithm Hash digest
SHA256 2b2d2fab42e8eb3a402f98e4d2659e9b7bf2bd1179489cf07a9fff72d147a36e
MD5 ea8dc24d990b6a7f4c2b02dfcb75d988
BLAKE2b-256 58f04fa9f7f2eb8d9fbdad045cdbec0d25de728cc36ca7a022aa882a8a8421b7

See more details on using hashes here.

File details

Details for the file runtui-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: runtui-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 164.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for runtui-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c5727d32ef0c2947472dbdba91f68e780b931e0c2d0f9026ad04305f937ee0ea
MD5 6283d69050a07f3aafb47c65d72f0af2
BLAKE2b-256 e5d04db8579d8e5c9d1c4bc67070a91f6cbfee2f91e924acef18523d8de236af

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page