Textual is a Python TUI framework and asynchronous UI library used to build interactive text user interfaces. It provides a component-based architecture for creating cross-platform applications that run in both terminal and web browser environments.
The framework distinguishes itself by utilizing a CSS-based layout engine to apply visual styles to widgets and a command palette interface for discovering and executing application functions. It also supports hosting terminal-based interfaces on the web to enable remote access via a standard browser.
The toolkit covers a broad range of capabilities including asynchronous UI programming, widget-based layout composition, and terminal emulation. It includes observability tools for console debugging that allow system messages and events to be captured in a separate terminal instance.