# textual

> 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

- Type: agent or tool
- Field: System & Self-hosted
- Repository: https://github.com/Textualize/textual
- GitHub stars: 37721
- Licence: MIT
- Language: Python
- Last push: 2026-11-09
- Page: https://imutechz.in/agents/textual

## What it is
Textual is a lean Python framework for building sophisticated user interfaces that run in both terminals and web browsers. It provides a simple Python API with web-inspired components, CSS-like styling, and a flexible layout system. The framework is asynchronous under the hood but doesn't require async knowledge to use.

## Features
- Cross-platform terminal and web browser support
- Rich widget library (buttons, trees, data tables, inputs, text areas)
- CSS-like styling with predefined themes
- Dev console for debugging from separate terminal
- Fuzzy-search command palette (Ctrl+P)
- Built-in testing framework

## Best for
- Terminal user interfaces (TUIs)
- Web-based dashboards from Python
- Cross-platform developer tools
- Interactive command-line applications

## Pros
- Simple Python API with modern patterns
- Runs in terminal and browser without code changes
- Decoupled components for maintainability
- Advanced testing framework included

## Cons
- Requires Python environment
- Web production serving needs separate textual-web package
- Async internals may require learning for advanced use

## Install
```
pip install textual textual-dev
```

## Usage
```
python -m textual
```

Tags: python, tui, terminal, web, ui-framework, async, css, widgets
