Pythie
CategoriesTrending
An open index of Python tools.Pythie’s IndexLegal noticePrivacyData: PyPI (package metadata; download statistics under CC BY 4.0, via ClickHouse), deps.dev (CC BY 4.0), GitHub, OSV.

textual

8.2.8ActivePythie’s Index: 51

Modern Text User Interface framework

Maintained. Last release 5 months ago, commits in 4 of the last 26 weeks. Weaker on commit activity and issue handling.

CLI & TerminalGUI & Desktop
$pip install textual
Textualize/textualDocsPyPI

Discord Supported Python Versions PyPI version OS support

textual-splash

Textual

clock

Build cross-platform user interfaces with a simple Python API. Run your apps in the terminal or a web browser.

Textual's API combines modern Python with the best of developments from the web world, for a lean app development experience. De-coupled components and an advanced testing framework ensure you can maintain your app for the long-term.

Want some more examples? See the examples directory.

"""
An App to show the current time.
"""

from datetime import datetime

from textual.app import App, ComposeResult
from textual.widgets import Digits


class ClockApp(App):
    CSS = """
    Screen { align: center middle; }
    Digits { width: auto; }
    """

    def compose(self) -> ComposeResult:
        yield Digits("")

    def on_ready(self) -> None:
        self.update_clock()
        self.set_interval(1, self.update_clock)

    def update_clock(self) -> None:
        clock = datetime.now().time()
        self.query_one(Digits).update(f"{clock:%T}")


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

[!TIP] Textual is an asynchronous framework under the hood. Which means you can integrate your apps with async libraries — if you want to. If you don't want or need to use async, Textual won't force it on you.

Widgets

Textual's library of widgets covers everything from buttons, tree controls, data tables, inputs, text areas, and more… Combined with a flexible layout system, you can realize any User Interface you need.

Predefined themes ensure your apps will look good out of the box.

buttons

tree

datatables

inputs

listview

textarea

Installing

Install Textual via pip:

pip install textual textual-dev

See getting started for details.

Demo

Run the following command to see a little of what Textual can do:

python -m textual

Or try the textual demo without installing (requires uv):

uvx --python 3.12 textual-demo

Dev Console

devtools

How do you debug an app in the terminal that is also running in the terminal?

The textual-dev package supplies a dev console that connects to your application from another terminal. In addition to system messages and events, your logged messages and print statements will appear in the dev console.

See the guide for other helpful tools provided by the textual-dev package.

Command Palette

Textual apps have a fuzzy search command palette. Hit ctrl+p to open the command palette.

It is easy to extend the command palette with custom commands for your application.

Command Palette

Textual ❤️ Web

textual-serve

Textual apps are equally at home in the browser as they are the terminal. Any Textual app may be served with textual serve — so you can share your creations on the web. Here's how to serve the demo app:

textual serve "python -m textual"

In addition to serving your apps locally, you can serve apps with Textual Web.

Textual Web's firewall-busting technology can serve an unlimited number of applications.

Since Textual apps have low system requirements, you can install them anywhere Python also runs. Turning any device into a connected device. No desktop required!

Join us on Discord

Join the Textual developers and community on our Discord Server.

Popularity

Downloads / month
59M
GitHub stars
37.8K
Downloads, last 7 days
13.5M
Stars, last 7 days
–
Direct dependents
4.2K
All dependents
5.4K

Pythie’s Index

How it works
51

Fair

Maintenance, out of 100

  • Recent release

    last release 151 days ago

  • Commit activity

    4/26 weeks with commits

  • Release cadence

    30 releases in 12 months

  • Issues & PRs handled

    12% closed in the past year

  • Contributor spread

    2 authors in last 100 commits

  • OpenSSF Scorecard

    5.2/10

Commits, last 26 weeks22

Releases

Latest
8.2.8
Released
Jun 30, 2026
Releases, 12 months
30
First release
Jun 3, 2021

Compatibility

Requires Python
<4.0,>=3.9
Tested on
3.9 · 3.10 · 3.11 · 3.12 · 3.13 · 3.14
License
MIT (Permissive)

Keywords

terminalpythontuirichcliframework

Alternatives

Use instead of textual: tools that do the same job, closest first.

Compare with urwid →Compare with asciimatics →Compare all 3 →

  • urwid5.2.1ActivePythie’s Index: 82

    A full-featured console (xterm et al.) user interface library

    CLI & TerminalGUI & Desktop3K5.1M/moReleased Nov 25, 2026
  • asciimatics1.15.0MaintainedPythie’s Index: 20

    A cross-platform package to replace curses (mouse/keyboard input & text colours/positioning) and create ASCII animations

    CLI & TerminalGUI & Desktop4.3K68K/moReleased Oct 25, 2023

Works well with

Use together with textual: extensions, drivers, servers and companion tools.

  • richPythie’s Index: 45Render rich text, tables, progress bars, syntax highlighting, markdown and more to the terminal591.6M downloads/mo
  • trogonPythie’s Index: 24Automatically generate a Textual TUI for your Click CLI233.3K downloads/mo
  • textual-servePythie’s Index: 25Turn your Textual TUIs in to web applications907.7K downloads/mo
  • textual-imagePythie’s Index: 87Render images via Kitty's Terminal Graphics Protocol with Rich and Textual1.1M downloads/mo
  • textual-plotextPythie’s Index: 25A Textual widget wrapper for the Plotext plotting library203.6K downloads/mo
  • textual-devPythie’s Index: 32Development tools for working with Textual526.9K downloads/mo