Python TUI libraries

Updated Nov 2026

Python TUI libraries build interactive interfaces that run inside a terminal, from single prompts to full-screen applications. A framework draws widgets with text characters and reads keyboard and mouse input from the terminal. These libraries let command-line tools and developer utilities offer menus, forms, and dashboards without a graphical window.

Popularity

Rich has the most monthly downloads in this comparison, at 575.1M, a count that covers all its terminal output formatting.

LibraryMonthly downloadsStarsLast releaseLicense
Rich
575.1M
57.8KApr 2026MIT
prompt_toolkit
225.0M
10.6KJul 2026BSD-3-Clause
Textual
59.3M
37.7KJun 2026MIT
Questionary
30.0M
2.2KAug 2025MIT
InquirerPy
15.3M
484Jun 2022MIT
Blessed
11.6M
1.5KOct 2026MIT
Urwid
5.4M
3.0KNov 2026LGPL-2.1
python-inquirer
4.3M
1.1KAug 2025MIT
Downloads: PyPI, last thirty days. Stars and releases: GitHub. Amber: no release in over a year.

Libraries and code examples

Renders rich text, tables, progress bars, syntax highlighting, and Markdown in the terminal.

Downloads / mo
575.1M
Stars
57.8K
Last release
15.0.0
License
MIT

Quickstart

From prompt.rst
$ python -m pip install rich
from rich.prompt import Prompt
name = Prompt.ask("Enter your name")

Rich examples

From open-source projects on GitHub

Builds interactive prompts and full-screen terminal applications.

Downloads / mo
225.0M
Stars
10.6K
Last release
3.0.53
License
BSD-3-Clause

Strengths

  • Supports Emacs and Vi editing. Offer familiar Emacs or Vi key bindings in terminal inputs.
  • Uses asyncio natively. Run terminal applications on Python’s asyncio event loop.

Limitations

  • Pygments supplies language highlighting. Add Pygments, a syntax-highlighting library, for its ready-made language lexers.
  • Existing async apps need run_async. Call run_async() inside applications that already use asyncio.

Quickstart

From hello-world.py
$ pip install prompt_toolkit
from prompt_toolkit import prompt

text = prompt("Give me some input: ")
print(f"You said: {text}")

prompt_toolkit examples

From open-source projects on GitHub

Builds terminal interfaces with nested widgets and CSS layouts.

Downloads / mo
59.3M
Stars
37.7K
Last release
8.2.8
License
MIT

Strengths

  • Positions widgets with CSS layouts. Arrange nested widgets with vertical, horizontal, and grid layouts.
  • Awaits asynchronous message handlers. Use async handlers to call asynchronous APIs.

Limitations

  • TextArea highlighting needs extra packages. Install textual’s syntax extra before enabling TextArea highlighting.
  • Slow handlers can block input. Move slow network calls out of message handlers.

Quickstart

From app.md
$ pip install textual
from textual.app import App

class MyApp(App):
    pass

if __name__ == "__main__":
    app = MyApp()
    app.run()

Textual examples

From open-source projects on GitHub

Builds command-line user prompts.

Downloads / mo
30.0M
Stars
2.2K
Last release
2.1.1
License
MIT

Quickstart

From quickstart.rst
$ pip install questionary
import questionary

answer = questionary.text("What's your first name").ask()

Questionary examples

From open-source projects on GitHub

Ports the Inquirer.js collection of interactive command-line interfaces to Python.

Downloads / mo
15.3M
Stars
484
Last release
0.3.4
License
MIT

Quickstart

From README.md
$ pip3 install InquirerPy
from InquirerPy import inquirer

name = inquirer.text(message="What's your name:").execute()

InquirerPy examples

From open-source projects on GitHub

Provides a well-documented interface for making terminal apps.

Downloads / mo
11.6M
Stars
1.5K
Last release
1.52.0
License
MIT

Quickstart

From intro.rst
$ pip install blessed
from blessed import Terminal

term = Terminal()

print(term.home + term.clear + term.move_y(term.height // 2))
print(term.black_on_darkkhaki(term.center('press any key to continue.')))

with term.cbreak(), term.hidden_cursor():
    inp = term.inkey()

print(term.move_down(2) + 'You pressed ' + term.bold(repr(inp)))

Blessed examples

From open-source projects on GitHub

Builds console interfaces from nested terminal widgets.

Downloads / mo
5.4M
Stars
3.0K
Last release
5.1.3
License
LGPL-2.1

Strengths

  • Nests layouts and keyboard focus. Divide space between widgets and manage focus within nested containers.
  • Integrates with multiple event loops. Connect the interface to asyncio or another supported event loop.

Limitations

  • Extra mouse buttons are unreliable. Prefer left-click actions over right-click and modifier-click interactions.

Quickstart

From index.html
$ pip install urwid
from __future__ import annotations

import urwid

txt = urwid.Text("Hello World")
fill = urwid.Filler(txt, "top")
loop = urwid.MainLoop(fill)
loop.run()

Urwid examples

From open-source projects on GitHub

python-inquirer

Provides a collection of interactive command-line interfaces based on Inquirer.js.

Downloads / mo
4.3M
Stars
1.1K
Last release
3.4.1
License
MIT

Quickstart

From README.md
$ pip install inquirer
import inquirer
questions = [
  inquirer.List('size',
                message="What size do you need?",
                choices=['Jumbo', 'Large', 'Standard', 'Medium', 'Small', 'Micro'],
            ),
]
answers = inquirer.prompt(questions)

python-inquirer examples

From open-source projects on GitHub

FAQ

Textual suits full-screen terminal applications built from nested widgets and CSS layouts. prompt_toolkit suits interactive prompts with Emacs or Vi key bindings. Questionary suits command-line tools that need a few user prompts.

Rich renders rich text, tables, progress bars, syntax highlighting, and Markdown in the terminal.

Textual builds terminal interfaces from nested widgets arranged in vertical, horizontal, and grid layouts. Its message handlers can call asynchronous APIs.

Questionary builds command-line user prompts in Python.

For coding agents

Found your TUI library? Help your agent use it.

Connect Exa so your coding agent can find the library’s documentation, check its API, and look up implementations while you build.

Run in your terminal

claude plugin install exa@claude-plugins-official