Textual
Using the Console
Start the console using the textual console command as shown below. NOTE the (textual) $ is just an indicator that the user is in a Python venv environment called textual (with the Textual packages installed):
(textual) $ textual console
Connect your app (e.g. my_app.py) to the console:
textual run --dev my_app.py
Decreasing Verbosity
Log messages are classififed into groups, and the -x flag can be used to exclude all message from a group. The groups are: EVENT, DEBUG, INFO, WARNING, ERROR, PRINT, SYSTEM, LOGGING and WORKER. The group a message belongs to is printed after its timestamp.
Multiple groups may be excluded, for example to exclude everything except warning, errors, and print statements:
textual console -x SYSTEM -x EVENT -x DEBUG -x INFO
Links
- Textual Homepage
- Rich on GitHub - Python library for rich text and beautiful formatting
Textual Widgets
- Textual-plot on PyPI on GitHub
- Builtin Widgets
- ContentSwitcher
- MarkdownViewer
- Tabs
Open Source Textual Apps
- Dolphi - MySQL/MariaDB & ProxySQL analytics
- Harlequin - DB client
- PlotextPlot - Plots of Weather data
- Posting - The API client that lives in your terminal
- Memray - Memory profiler
- Toolong - View, tail, merge, and search logs
- Textual Games - By Edward Jazzhands