or run

tessl search
Log in

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
pypipkg:pypi/textual@6.1.x
tile.json

tessl/pypi-textual

tessl install tessl/pypi-textual@6.1.0

Modern 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%

task.mdevals/scenario-2/

System Monitor Dashboard

A terminal application that displays a system metrics table with styled output.

Capabilities

Display Metrics Table

Build a terminal application that displays system metrics in a formatted table:

  • The application displays a table with 3 rows showing system metrics (CPU, Memory, Disk) @test
  • The table has three columns: "Metric", "Value", and "Status" @test
  • The Status column values use colored text: green for "OK", yellow for "Warning", red for "Critical" @test

Show Title Panel

  • The application displays a panel at the top with the title "System Monitor" centered @test

Handle Refresh

  • Pressing 'r' updates the table with new values @test
  • Pressing 'q' exits the application @test

Implementation

@generates

API

"""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()

Dependencies { .dependencies }

textual { .dependency }

Provides the TUI framework for building the terminal application.

rich { .dependency }

Provides styled text rendering, tables, panels, and syntax highlighting capabilities.