Powerful and flexible library for creating console user interfaces
Urwid is a flexible and comprehensive Python library used to create text-based user interfaces for terminal applications. It enables developing console applications with rich user interactivity and custom layouts.
Key Features:
Common Use Cases:
pip install urwid
import urwid
def on_exit(key):
if key == 'q':
raise urwid.ExitMainLoop()
txt = urwid.Text("Hello, Urwid!", align='center')
fill = urwid.Filler(txt, valign='middle')
loop = urwid.MainLoop(fill, unhandled_input=on_exit)
loop.run()