Skip to main content

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

Metadata

Release files for urwid 5.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for urwid 5.1.3
File Size Uploaded Provenance Actions
urwid-5.1.3.tar.gz 568.8 kB With provenance Details for urwid-5.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for urwid 5.1.3
File Interpreter ABI Platform Actions
urwid-5.1.3-py3-none-any.whl Python 3 none any Details for urwid-5.1.3-py3-none-any.whl

Total release size: 1.2 MB

Release files / urwid-5.1.3.tar.gz

Download URL urwid-5.1.3.tar.gz
Size 568.8 kB
Tags Source
SHA-256 checksum
How to use checksums
0454a71b27e5f1dcd0e155dd6917c59a2cfaf069585e7395b20409a4fefe2eb3
BLAKE2b-256 checksum
How to use checksums
b5671e1ab83fce57de92b1a2b1ab1521aadaeabb97d7b15e5280687f4523a2f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Release files / urwid-5.1.3-py3-none-any.whl

Download URL urwid-5.1.3-py3-none-any.whl
Size 601.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6ec613909e3839f665dd23aa5b46c2698e476f3af8f8b760b5d012938af99475
BLAKE2b-256 checksum
How to use checksums
0342486b3e7083bb0491187559385d7bc42694e216ab0afaa0f2fea1bb1ff938
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Security for urwid 5.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for urwid-5.1.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

5.1.3 This release

2 release files Full provenance

1.0.1

1.0.0

0.9.9.2

0.9.9.1

0.9.9

0.9.8.4

0.9.8.3

0.9.8.2

0.9.8

0.9.7.2

0.9.7

0.9.6

0.9.5

0.9.4

0.9.3

0.9.2

0.9.1

0.9.0

0.9.0-pre3

0.9.0-pre2

0.8.10

0.8.9

0.8.8

0.8.7

0.8.6

0.8.5

0.8.4

0.8.3

0.8.2

0.8.1

0.8.0

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page