This repository was archived by the owner on Sep 10, 2026. It is now read-only.
Repository navigation
v3.2.0: Rainbows & usability!
Edit:
ptg -v does not work on PyPi installs in this version. This was already fixed in (e271857), but I didn't deem that one fix to be worthy of a full bugfix patch.
This version mostly focused on adding some nice utilities while improving the old ones. Before that however, I want take a second to mention how the library grew almost 300 stars in 2 days. I am immensely grateful for the exposure my project is getting, and I can't wait to see it in the wild!
Things to point out:
- Improvements to pretty printing in general
prettymodule: This is a very simple module that allows setting up displayhook with only one line in the REPLKeyboardButtonwidget: This allows keyboard mnemonics inside PTG.!rainbowand!gradientmacros: These are very pretty and fancy looking.
Refactors
- Colorize version info (b3075a3)
- Stop displaying version hash info if it could not be found (695511610df6dce9c18bb7e105422d0dbd304b72)
- Improve
parser documentation(933729e) - Extend pretty printing to more data types (d0ae9cc)
- Improve
IPythondisplay hook support (caa7c74)
Bugfixes
- Fix redundant sequence output in
MarkupLanguage.parse(7f49087) - Fix markup macros only running once due to caching (a2edf6d)
- Fix
Window.is_modalnot being applied properly since a mouse handling refactor (c1d3619)

