Skip to main content

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

Project description

title

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

pip3 install pytermgui

PyPi project Code quality

Twitter Buy Me A Coffee donate button

Why?

Mostly because terminals are cool, but creating terminal apps has historically been difficult. PyTermGUI aims to provide a simple, readable and modular way to make the app of your dreams!

Terminal apps are (often):

  • Easier to install
  • Faster & more resource efficient
  • Less prone to differences between environments (no IE7 here!)

...than their web or native counterparts.

How?

We provide a couple of things to make your life easier:

  • Sensible abstractions over most terminal standards
  • A fully-fledged, desktop-inspired window manager system with modals and completely customizable windows
  • Mouse support out of the box with 0 configuration
  • YAML (or Python) based styling engines
  • TIM, our markup language for creating styled terminal text with expressive text, including systems for aliases & macros
  • A bunch of things I can't think of right now :slightly_smiling_face:

Additionally, there are a couple of neat tools to make your general Python development easier:

  • An inspection utility
  • A pretty printer for both the REPL and IPython
  • A way to create SVG and HTML screenshots of your terminal

Latest release

7.2.0 - 2022-08-05

Additions

  • Add various color manipulation utilities
  • Add #auto TIM pseudo-tag that always gives properly contrasted foreground text
  • Add palettes module for framework-wide color generation & configuration
  • Add Synchronized Output support
  • Add FancyReprWidget
  • Add ptg --palette flag

Bugfixes

  • Fix markup aliases getting literalized during parsing.eval_alias & MarkupLanguage.alias
  • Fix background colors creating vertical seams in SVG exports
  • Fix colors getting localized pre-maturely

Refactors

  • Make all the ptg program & all builting widgets use the global palette
  • Prefix all ANSI colors with ansi-

Read the full changelog here.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytermgui-7.2.0.tar.gz (143.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytermgui-7.2.0-py3-none-any.whl (172.7 kB view details)

Uploaded Python 3

File details

Details for the file pytermgui-7.2.0.tar.gz.

File metadata

  • Download URL: pytermgui-7.2.0.tar.gz
  • Upload date:
  • Size: 143.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.22.0

File hashes

Hashes for pytermgui-7.2.0.tar.gz
Algorithm Hash digest
SHA256 bec500e07b76456980b9e28994523b273e17dd70d923a0767e76ff7f7f2ce5f7
MD5 d77ef9b0d2cce82f3a99af940362f05a
BLAKE2b-256 911406486d918c15adc040502b4dc265dced69e315eecef196e7457f3c8fe0bf

See more details on using hashes here.

File details

Details for the file pytermgui-7.2.0-py3-none-any.whl.

File metadata

  • Download URL: pytermgui-7.2.0-py3-none-any.whl
  • Upload date:
  • Size: 172.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.22.0

File hashes

Hashes for pytermgui-7.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1d6856b10705793e17bc0527cc04da4cdeb00b6ca79437f1a43cfe56b9c46cf8
MD5 15f07ffd3e440d790fef8c8e7d87e1ff
BLAKE2b-256 d6d36ce7a16a796ca66be22d16e7f4b4b3942eb064d356513692703ee2a78861

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page