Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
T

textual

> 开发工具
Open source

The lean application framework for Python. Build sophisticated user interfaces with a simple Python API. Run your apps in the terminal and a web browser.

36.8K stars0 likes6 views
WebsiteGitHub

About

The lean application framework for Python. Build sophisticated user interfaces with a simple Python API. Run your apps in the terminal and a web browser.

Textual

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.

…

[!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.

Installing

Install Textual via pip:

bash
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):

bash
uvx --python 3.12 textual-demo

Dev Console

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.

Textual ❤️ Web

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.

Issues· 360 open

View all issuesOpen on GitHub
  • #6723

    Narrow Screen.refresh(Region) can discard another widget's repaint

    Updated Sep 29, 2026
  • #6721

    Kitty key reports longer than 32 characters are typed out as keys, garbling input-method commits

    Updated Sep 27, 2026
  • #5906

    Docs about async event handlers recommand the asyncio API instead of Workers

    Updated Sep 26, 2026
  • #6715

    clear_panes() docstring says "optionally awaitable" but skipping the await causes DuplicateIds

    Updated Sep 24, 2026
  • #6713

    WebDriver ignores App.run(mouse=False) and enables mouse reporting anyway

    Updated Sep 20, 2026
  • #6699

    RichLog horizontal scrollbar never shrinks when max_lines is set (Ghost Scrollbar)

    Updated Sep 15, 2026
  • #6710

    BINDINGS typed as `list[BindingType]` prevent subclasses from using a tuple

    Updated Sep 14, 2026
  • #6643

    Markdown.update can leave a detached MarkdownParagraph in the compositor and crash MouseDown selection

    Updated Sep 8, 2026
  • #6692

    App.suspend() skips resume_application_mode() when the suspended body raises, deadlocking the app

    Updated Sep 7, 2026
  • #6706

    ZeroDivisionError parsing pixel mouse events when terminal pixel size is (0, 0)

    Updated Sep 5, 2026

> Tags

Pythoncliframeworkpythonrich

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 30, 2026
Category开发工具
PricingOpen source

> Related tools

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具