tessl install tessl/pypi-textual@6.1.0Modern Text User Interface framework for building cross-platform terminal and web applications with Python
Agent Success
Agent success rate when using this tile
93%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.18x
Baseline
Agent success rate without this tile
79%
A terminal application that displays a system metrics table with styled output.
Build a terminal application that displays system metrics in a formatted table:
@generates
"""System Monitor Dashboard application."""
from textual.app import App
class DashboardApp(App):
"""A terminal application displaying system metrics.
Shows:
- A title panel
- A table with system metrics and colored status indicators
Key bindings:
- 'r': Refresh the metrics
- 'q': Quit
"""
def compose(self):
"""Create and yield child widgets."""
pass
def on_key(self, event):
"""Handle key presses."""
pass
def run():
"""Run the application."""
app = DashboardApp()
app.run()
if __name__ == "__main__":
run()Provides the TUI framework for building the terminal application.
Provides styled text rendering, tables, panels, and syntax highlighting capabilities.