Scroll to navigation

pytermgui(1) pytermgui pytermgui(1)

NAME

pytermgui - 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

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

OPTIONS

options:

show this help message and exit

Applications: --app Getch, Inspect, Color, Tim Launch an app.

Launch the Getch app.
Launch the TIM Playground app.
Launch the ColorPicker app.

Inspection: -i PATH_OR_CODE, --inspect PATH_OR_CODE Inspect an object.

Evaluate the expression given to `--inspect` instead of treating it as a path.
Always show methods when inspecting.
Always show __dunder__ methods when inspecting.
Always show _private methods when inspecting.

Utilities:

Output the current terminal size in WxH format.
Print version & system information.
Print the default PyTermGUI color palette.
Highlight some python-like code syntax. No argument or '-' will read STDIN.
Execute some Python code. No argument or '-' will read STDIN.
Interpret a PTG-YAML file.
When interpreting YAML, print the environment without running it interactively.

Exporters:

Export the result of any non-interactive argument as an SVG file.
Export the result of any non-interactive argument as an HTML file.
11 April 2024 7.7.1+dfsg