# bczsalba/pytermgui

Python TUI framework with mouse support, modular widget system, customizable and rapid terminal markup language and more!

Repository: https://github.com/bczsalba/pytermgui
Canonical: https://ross.abutalabs.com/products/pytermgui
Homepage: https://ptg.bczsalba.com
Language: Python
License: MIT
License Family: permissive
Topics: python3, python, typing, tui, terminal, ansi-escape-sequences, ansi-escape-codes, gui, pytermgui, cross-platform, ansi, cli, command-line, console
Last push: 2026-08-21T20:02:35+00:00

## Health v2 (maintenance only)
Score: 87/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 65, longevity 100
- inputs: {"age_days": 1981, "days_push": 12, "days_rel": 23, "gap_med": 293.5, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2671, forks 62 (observed 2026-08-28T04:07:09.508078+00:00)

## What it is
PyTermGUI is a Python framework for building terminal user interfaces (TUIs) with mouse support, a modular widget system, a window manager, and a terminal markup language called TIM. The project is now archived and no longer in development, though its releases and documentation remain available under the MIT license.

## Use cases
- build a terminal app with mouse support in python
- create tui widgets and windows in the terminal
- style terminal text with a markup language
- make a terminal clock or dashboard app
- take svg or html screenshots of terminal output
- pretty-print python objects in the repl
- build a modal dialog system in the terminal

## When to choose
- you want a modern, pythonic alternative to curses for terminal apps
- you need mouse support and a widget/window system out of the box
- you want expressive terminal text styling with aliases and macros
- you are okay maintaining a fork yourself since the project is archived

## When to avoid
- you need a framework with active development and community support
- you must support legacy Windows Console Host (conhost) with full ANSI features
- you need long-term stability guarantees for production software
- you prefer a TUI library with a larger ecosystem like textual

## Facets
- artifact type: framework
- maturity: abandoned
- function: ui-components, developer-tools, terminal-ui
- domain: developer-tools, cross-platform
- platform: python, windows, cross-platform, cli
- tags: tui, terminal-user-interface, ansi-escape-sequences, mouse-support, markup-language, widget-system, window-manager, archived, command-line, linux, macos

## Member repositories
- bczsalba/pytermgui (main) score 87

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:09.508078+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:18:07.817577+00:00, confidence not recorded.
  - readme: https://github.com/bczsalba/pytermgui (fetched 2026-08-28T04:07:09.508078+00:00, sha 4d3943035795)
  - homepage: https://ptg.bczsalba.com (fetched 2026-08-29T10:00:43.736629+00:00, sha e52edd9e5f34)
  - registry_pypi: https://pypi.org/pypi/pytermgui/json (fetched 2026-08-29T10:00:43.741218+00:00, sha e50dd533c2fc)
  - site_page: https://ptg.bczsalba.com/widgets/attrs (fetched 2026-08-29T10:00:43.739197+00:00, sha f627cc039b23)
- Data as of 2026-08-30T08:39:29.467469+00:00.
