urwid
A full-featured console (xterm et al.) user interface library
What it is and what it does
Urwid is a mature console UI library that abstracts away terminal complexity and lets you build interactive text applications using a widget-based model. It handles rendering, input events, and terminal compatibility across Unix-like systems and partially Windows, supporting UTF-8 and various color modes (24-bit true color down to 88 color). The library includes pre-built widgets (text boxes, buttons, checkboxes, radio buttons, list boxes) and lets you choose your event loop (asyncio, Twisted, Glib, Tornado, trio, ZeroMQ, or a built-in select-based loop), making it suitable for everything from simple CLI tools to complex interactive applications.
You use Urwid by composing widgets into a display hierarchy, wrapping them in a MainLoop, and running the loop to handle user input and rendering. The library handles automatic text wrapping and alignment, smooth resizing, and terminal mode negotiation. It's been in active development since 2012 with a large contributor base and is currently maintained by multiple developers.
Use it for:
- Build interactive CLI tools with menus, forms, and scrollable lists without wrestling with raw curses.
- Create system monitoring dashboards or admin interfaces that run in a terminal.
- Develop text-based games or interactive fiction with rich UI elements.
- Build terminal-based data browsers or log viewers with dynamic content.
- Integrate terminal UI into async Python applications using asyncio or Twisted event loops.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Urwid is a Python console UI library that lets you build text-based applications with widgets, event loops, and display modes for Linux, macOS, and limited Windows support.
Yes. Urwid is a stable, actively maintained library with low install friction and no known vulnerabilities. The copyleft license (LGPL-2.1-only) is a real constraint for proprietary software but poses no issue for open-source or internal tools. Install it if you need to build a non-trivial console UI; for simple output, consider lighter alternatives.
Install
urwid on PyPI
pip
pip install urwiduv
uv add urwidpoetry
poetry add urwidInstalling urwid
Before you install
Low friction: pure Python wheel with only two lightweight runtime dependencies (wcwidth and typing-extensions). Actively maintained with recent release and steady commit activity.
License in practice
Licensed under LGPL-2.1-only (copyleft). You must distribute source code and license terms with any derivative work; proprietary applications cannot use this package without dual licensing.
Quickstart
pip install urwid
import urwid
text = urwid.Text("Hello, World!")
urwid.MainLoop(text).run()
Requires Python 3.9 or later. Windows 10+ only for Windows support; some features (Terminal widget, ZMQ event loop) unavailable on Windows.
Verify before relying
- Whether the experimental LCD and web display modules are production-ready or still under active development.
- Performance characteristics when handling very large scrollable lists or complex widget hierarchies.
Package facts
| License | LGPL-2.1-only (copyleft) |
| Python support | supports the current Python release (>=3.9.0) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — wcwidth, typing-extensions |
| Maintenance | actively maintained — 0 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 6,828,798/month — #1,839 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: urwid-4.0.9-py3-none-any.whl
Keywords: console, curses, listbox, ncurses, scroll, text layout, ui, user interface, widget
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
urwid-readlineAdds readline-style keyboard shortcuts to urwid…
permissive · top 15,000 on PyPI
windows-cursesProvides the standard Python curses module on…
permissive · top 15,000 on PyPI
pythondialogProvides a Python interface to the UNIX dialog…
copyleft · top 15,000 on PyPI
coloredColored provides ANSI/VT100 escape sequences…
permissive · top 5,000 on PyPI
ipywidgetsipywidgets provides interactive HTML widgets…
permissive · top 1,000 on PyPI
jinxedJinxed provides pure-Python implementations of…
copyleft · top 5,000 on PyPI
asciimaticsAsciimatics provides cross-platform terminal UI…
permissive · top 15,000 on PyPI
progressbar33Displays text-based progress bars in the…
unclear · top 15,000 on PyPI
blessedBlessed provides a clean Python interface for…
permissive · top 5,000 on PyPI
reprintBinds Python variables to multi-line terminal…
permissive · top 15,000 on PyPI