urwid 5.2.0


pip install urwid

  Latest version

Released: Nov 24, 2026


Meta
Author: Ian Ward
Requires Python: >=3.11.0

Classifiers

Development Status
  • 5 - Production/Stable

Environment
  • Console
  • Console :: Curses

Intended Audience
  • Developers

Operating System
  • POSIX
  • Unix
  • MacOS :: MacOS X
  • Microsoft :: Windows

Topic
  • Software Development :: Libraries :: Python Modules
  • Software Development :: User Interfaces
  • Software Development :: Widget Sets

Programming Language
  • Python :: 3
  • Python :: 3.11
  • Python :: 3.12
  • Python :: 3.13
  • Python :: 3.14
  • Python :: 3.15
  • Python :: 3 :: Only
  • Python :: Implementation :: CPython
  • Python :: Implementation :: PyPy
  • Python :: Free Threading :: 2 - Beta

Typing
  • Typed

Urwid

current version on PyPi Documentation Status Gitter CI status pre-commit test coverage

About

Urwid is a console user interface library for Python on Linux, OSX, Cygwin or other unix-like OS and partially supports Windows OS (see below).

It includes many features useful for text console application developers including:

  • Applications resize quickly and smoothly

  • Automatic, programmable text alignment and wrapping

  • Simple markup for setting text attributes within blocks of text

  • Powerful list box with programmable content for scrolling all widget types

  • Your choice of event loops: Twisted, Glib (deprecated), Tornado, asyncio, trio, ZeroMQ or select-based loop

  • Pre-built widgets include edit boxes, buttons, check boxes and radio buttons

  • Display modules include raw, curses, and experimental LCD (deprecated) and web displays

  • Support for UTF-8, simple 8-bit and CJK encodings

  • 24-bit (true color), 256 color, and 88 color mode support

  • Compatible with Python 3.11+ and PyPy

Home Page:

http://urwid.org/

Installation

To install using pip

pip install urwid

For advanced functionality extra requirements need to be installed. Example for the ZeroMQ event loop:

pip install urwid[zmq]

Alternatively if you are on Debian or Ubuntu

apt-get install python3-urwid

Windows support notes

Windows support is limited to the Windows 10+ due to ANSI support requirement.

  • Not supported:

  1. Terminal widget and all related render API (TermCanvas, TermCharset, TermModes, TermScroller)

  2. Any file descriptors except sockets (Windows OS limitation)

  3. ZMQEventLoop.

  • Special requirements:

  1. Extra libraries required for curses display support:

pip install urwid[curses]
  • CursesDisplay incorrectly handles mouse input in case of fast actions.

  • Only UTF-8 mode is supported.

Testing

To run tests locally, install & run tox. You must have appropriate Python versions installed to run tox for each of them.

To test code in all Python versions:

tox                           # Test all versions specified in tox.ini
tox -e py311                  # Test Python 3.11 only
tox -e py313t                 # Test Python 3.13 with free-threading
tox -e pypy311                # Test PyPy 3.11
tox -e py311,py312,pypy311    # Test specific versions

Testing different Python implementations

CPython standard (default)

Tests all optional extras including C extensions (glib, zmq, twisted).

tox -e py313

Free-threaded CPython (3.13+)

Tests with compatible extras (tornado, trio, twisted, serial). Excludes C extensions without free-threading wheel support.

tox -e py313t        # Python 3.13 free-threaded (PEP 703)
tox -e py314t        # Python 3.14 free-threaded
tox -e py315t        # Python 3.15 free-threaded

PyPy

Tests with compatible extras (tornado, trio, serial). Excludes problematic C extensions.

tox -e pypy311       # PyPy 3.11
tox -e pypy312       # PyPy 3.12

Supported Python versions

Urwid supports:

  • CPython 3.11, 3.12, 3.13, 3.14, 3.15

  • CPython 3.13+ with free-threading (PEP 703 --disable-gil)

  • PyPy 3.11

Python implementation notes

CPython (standard Python)

Full support for all optional features. All extras (curses, glib, serial, tornado, trio, twisted, zmq) can be installed. On Windows, the curses extra cannot be installed on Python 3.15 yet: windows-curses publishes no 3.15 wheel.

CPython with Free-Threading (3.13, 3.14, 3.15+)

Urwid core and pure-Python event loops are fully supported. Some extras require C extensions that may not have free-threading wheels available:

  • ✅ Supported: core, tornado, trio, twisted, serial, lcd

  • ❌ Unsupported: glib, zmq (require C extensions with free-threading wheel support)

For free-threading Python, install with compatible extras:

python3.13 -m pip install 'urwid[tornado,trio,serial]'

PyPy

Urwid core is fully supported. Some extras may have compatibility issues:

  • ✅ Supported: core, tornado, trio, serial, lcd

  • ⚠️ Limited: twisted (may have issues, test before using)

  • ❌ Unsupported: glib, zmq (C extensions with limited PyPy support)

  • ❌ Unsupported: curses on Windows (PyPy for Windows ships no _curses module and windows-curses publishes no PyPy wheels)

Authors

Creator

wardi

Maintainers

and3rson, tonycpsu, ulidtko, penguinolog

Contributors

1in7billion, abadger, agrenott, akorb, alethiophile, aleufroy, alobbs, amjltc295, and-semakin, andrewshadura, andy-z, anttin2020, Apteryks, Arfrever, AutoAwesome, belak, berney, bk2204, BkPHcgQL3V, bwesterb, carlos-jenkins, Certseeds, Chipsterjulien, chrisspen, cltrudeau, Codeberg-AsGithubAlternative-buhtz, cortesi, d0c-s4vage, derdon, dholth, dimays, dlo, dnaeon, doddo, douglas-larocca, drestebon, dsotr, dwf, EdwardBetts, elenril, EnricoBilla, extempore, fabiand, floppym, flowblok, fmoreau, goncalopp, Gordin, GregIngelmo, grzaks, gurupras, HarveyHunt, Hoolean, hukka, hydratim, ids1024, imrek, isovector, itaisod, ixxra, jeblair, johndeaton, jonblack, jspricke, kedder, Kelketek, KennethNielsen, kesipyc, kkrolczyk, Kwpolska, Lahorde, laike9m, larsks, lfam, lgbaldoni, lighth7015, livibetter, Lothiraldan, Mad-ness, madebr, magniff, marlox-ouda, mattymo, mdtrooper, mgk, mimi1vx, mobyte0, MonAaraj, MonthlyPython, mountainstorm, mselee, mwhudson, naquad, nchavez324, neumond, nolash, ntamas, nyov, ocarneiro, okayzed, pquentin, rbanffy, ReddyKilowatt, regebro, renegarcia, rianhunter, roburban, RRMoelker, rwarren, scopatz, seanhussey, seonon, shadedKE, sithglan, Sjc1000, sporkexec, squrky, ssbr, techdragon, thehunmonkgroup, thisch, thornycrackers, TomasTomecek, tompickering, tony, ttanner, tu500, uSpike, vega0, vit1251, waveform80, Wesmania, xandfury, xndcn, zhongshangwu, zrax

5.2.0 Nov 24, 2026
5.1.3 Nov 12, 2026
5.1.2 Nov 11, 2026
5.1.1 Nov 10, 2026
5.1.0 Nov 06, 2026
5.0.1 Oct 29, 2026
5.0.0 Oct 28, 2026
4.2.5 Oct 05, 2026
4.2.4 Oct 01, 2026
4.2.3 Sep 30, 2026
4.2.2 Sep 30, 2026
4.2.1 Sep 29, 2026
4.2.0 Sep 29, 2026
4.1.7 Sep 23, 2026
4.1.6 Sep 23, 2026
4.1.5 Sep 18, 2026
4.1.4 Sep 17, 2026
4.1.3 Sep 11, 2026
4.1.2 Sep 07, 2026
4.1.1 Sep 03, 2026
4.1.0 Sep 02, 2026
4.0.13 Aug 25, 2026
4.0.12 Aug 25, 2026
4.0.11 Aug 19, 2026
4.0.10 Aug 17, 2026
4.0.9 Aug 14, 2026
4.0.8 Jul 26, 2026
4.0.7 Jul 24, 2026
4.0.6 Jul 23, 2026
4.0.5 Jul 20, 2026
4.0.4 Jul 13, 2026
4.0.3 Jun 25, 2026
4.0.2 Jun 02, 2026
4.0.1 May 26, 2026
4.0.0 Mar 30, 2026
3.0.5 Feb 02, 2026
3.0.4 Dec 02, 2025
3.0.3 Sep 15, 2025
3.0.2 May 07, 2025
3.0.1 May 07, 2025
3.0.0 May 06, 2025
2.6.16 Oct 15, 2024
2.6.15 Jul 03, 2024
2.6.14 Jun 12, 2024
2.6.13 Jun 07, 2024
2.6.12 May 14, 2024
2.6.11 Apr 22, 2024
2.6.10 Mar 25, 2024
2.6.9 Mar 13, 2024
2.6.8 Mar 04, 2024
2.6.7 Feb 28, 2024
2.6.6 Feb 27, 2024
2.6.5 Feb 26, 2024
2.6.4 Feb 21, 2024
2.6.3 Feb 21, 2024
2.6.2 Feb 20, 2024
2.6.1 Feb 16, 2024
2.6.0.post0 Feb 16, 2024
2.6.0 Feb 16, 2024
2.5.3 Feb 12, 2024
2.5.2 Feb 09, 2024
2.5.1 Feb 01, 2024
2.5.0 Jan 29, 2024
2.4.6 Jan 22, 2024
2.4.5 Jan 22, 2024
2.4.4 Jan 18, 2024
2.4.3 Jan 17, 2024
2.4.2 Jan 11, 2024
2.4.1 Jan 03, 2024
2.4.0 Jan 03, 2024
2.3.4 Dec 05, 2023
2.2.3 Oct 19, 2023
2.2.2 Sep 25, 2023
2.2.1 Sep 22, 2023
2.2.0 Sep 21, 2023
2.1.2 Sep 26, 2020
2.1.1 Jul 26, 2020
2.1.0 Nov 14, 2019
2.0.1 Jan 21, 2018
2.0.0 Jan 17, 2018
1.3.1 Nov 02, 2015
1.3.0 Oct 17, 2014
1.2.2 Oct 06, 2014
1.2.1 Apr 04, 2014
1.2.0 Feb 09, 2014
1.1.2 Dec 30, 2013
1.1.1 Nov 16, 2012
1.1.0 Oct 23, 2012
1.0.2 Jul 13, 2012

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras:
Dependencies:
wcwidth (!=0.9.0,!=0.9.1,>=0.4)
typing_extensions (>=4.5.0)