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-10/

Task Tracker Application

Build a simple command-line task tracker application using Textual that allows users to add tasks, view their task list, and quit the application.

Requirements

Create a terminal user interface application with the following features:

Application Structure

The application should have a title displayed at the top and accept keyboard commands to control its behavior.

Task Management

  • Users should be able to add new tasks by pressing a key
  • When adding a task, display an input field where users can type the task description
  • After entering a task, it should be added to the visible list
  • The application should display all tasks in a scrollable list

User Interface

  • Show a clear title for the application
  • Display a list area where tasks are shown
  • Provide visual feedback for available keyboard commands
  • Use appropriate styling to make the interface readable

Controls

Implement the following keyboard shortcuts:

  • A key to add a new task (should open an input field)
  • A key to quit the application
  • The input field should accept text and submit on Enter key

Application Behavior

  • The application should start with an empty task list
  • Tasks should be displayed in the order they were added
  • The application should handle the addition of multiple tasks
  • The application should exit cleanly when the quit command is issued

Test Cases

  • Starting the application displays the title and an empty task list @test
  • Pressing the add task key displays an input field @test
  • Submitting a task through the input field adds it to the task list @test
  • Multiple tasks can be added sequentially and all appear in the list @test

Implementation

@generates

API

from textual.app import App

class TaskTrackerApp(App):
    """A simple task tracker terminal application."""
    pass

def main():
    """Entry point for the task tracker application."""
    app = TaskTrackerApp()
    app.run()

Dependencies { .dependencies }

textual { .dependency }

Provides the TUI framework for building terminal applications.

@satisfied-by