pytermgui(1)

πŸ“¦ version 7.7.3, in debian trixie, ubuntu resolute, ubuntu stonking

πŸ’– pytermgui β€” the manual page, but make it cute πŸ’–

okay so bestie, you've found yourself at the pytermgui page of the manual β€” it's pytermgui(1), and honestly? it's giving main character energy. Sit down, grab a strawberry πŸ“, and let me tell you everything.


✨ NAME ✨

pytermgui β€” a Python TUI framework with multi-feature support πŸ¦‹


✨ SYNOPSIS ✨

ptg  [-h] [--app Getch, Inspect, Color, Tim] [-g] [-t] [-c] [-i PATH_OR_CODE] [-e] [--methods] [--dunder] [--private] [-s]
   [-v] [--palette] [--highlight [SYNTAX]] [--exec [EXEC]] [-f FILE] [--print-only] [--export-svg FILE] [--export-html FILE]

✨ DESCRIPTION ✨

It's a Python TUI framework with mouse support, a modular widget system, a customizable and rapid terminal markup language, and more! πŸ’… Like, literally all of it. No cap. πŸŽ€


✨ OPTIONS ✨

🌸 options:

  • -h, --help β€” shows you this help message and then dips. 🫢

🌈 Applications:

--app Getch, Inspect, Color, Tim β€” launches an app, bestie. Pick your fighter. πŸ‘‘

  • -g, --getch β€” launches the Getch app. ✨
  • -t, --tim β€” launches the TIM Playground app. πŸŽ€
  • -c, --color β€” launches the ColorPicker app. 🌈

πŸ” Inspection:

-i PATH_OR_CODE, --inspect PATH_OR_CODE β€” inspects an object. πŸ‘€ Like, we're looking at it. Closely.

  • -e, --eval β€” evaluates the expression you handed to --inspect instead of treating it as a path. πŸ”₯
  • --methods β€” always shows methods when inspecting. periodt.
  • --dunder β€” always shows __dunder__ methods when inspecting. πŸ’€
  • --private β€” always shows _private methods when inspecting. πŸ™ˆ

πŸ› οΈ Utilities:

  • -s, --size β€” outputs the current terminal size in WxH format. πŸ“
  • -v, --version β€” prints version & system information. ⭐
  • --palette β€” prints the default PyTermGUI color palette. 🎨
  • --highlight [SYNTAX] β€” highlights some python-like code syntax. No argument, or -, will read STDIN. πŸ¦‹
  • --exec [EXEC] β€” executes some Python code. No argument, or -, will read STDIN. πŸ”₯
  • -f FILE, --file FILE β€” interprets a PTG-YAML file. πŸ“
  • --print-only β€” when interpreting YAML, prints the environment without running it interactively. πŸ‘‘

πŸ“¦ Exporters:

  • --export-svg FILE β€” exports the result of any non-interactive argument as an SVG file. πŸ’œ
  • --export-html FILE β€” exports the result of any non-interactive argument as an HTML file. πŸ’–
ngl bestie, the exporters only do their thing for non-interactive arguments β€” so don't expect an SVG of your whole live playground session, okay? 🫢

and that's the whole page, no notes. This was pytermgui version 7.7.3+dfsg, dated 08 January 2025, and it's pytermgui(1) β€” ily, go build something iconic with it πŸ’…βœ¨πŸ‘‘

πŸ“¦ where this page comes from