CtrlK
CommunityDocumentationLog inGet started
Tessl Logo

tessl/pypi-gntp

tessl install tessl/pypi-gntp@1.0.0

Growl Notification Transport Protocol for Python

Agent Success

Agent success rate when using this tile

80%

Improvement

Agent success rate improvement when using this tile compared to baseline

1.25x

Baseline

Agent success rate without this tile

64%

task.mdevals/scenario-2/

Task Notification System

Build a notification system that sends desktop notifications for task management events with different priorities and behaviors.

Requirements

Create a TaskNotifier class that sends desktop notifications about task events. The class should:

  1. Initialize with application name "Task Manager" and support three notification types: "task_created", "task_reminder", and "task_urgent"
  2. Send task creation notifications with a standard title and description
  3. Send reminder notifications that remain on screen until dismissed
  4. Send urgent task notifications with high priority
  5. Handle registration with the notification service before sending notifications

Capabilities

Initialization and Registration

  • The notifier initializes with app name "Task Manager" and registers three notification types: "task_created", "task_reminder", and "task_urgent" @test
  • Registration is called before sending any notifications @test

Task Creation Notifications

  • Task creation notifications use noteType "task_created", include the task title as the notification title, and task details as the description @test
  • Task creation notifications have default priority (0) @test

Task Reminder Notifications

  • Task reminder notifications use noteType "task_reminder" and remain on screen (sticky=True) until dismissed @test
  • Reminder notifications include "Reminder: " prefix in the title @test

Urgent Task Notifications

  • Urgent task notifications use noteType "task_urgent" and have high priority (2) @test
  • Urgent notifications include "URGENT: " prefix in the title @test

Implementation

@generates

API

class TaskNotifier:
    """
    Sends desktop notifications for task management events.
    """

    def __init__(self, hostname='localhost', port=23053):
        """
        Initialize the TaskNotifier.

        Args:
            hostname: The Growl server hostname (default: 'localhost')
            port: The Growl server port (default: 23053)
        """
        pass

    def notify_task_created(self, task_title: str, task_details: str):
        """
        Send a notification for a newly created task.

        Args:
            task_title: The title of the task
            task_details: Details about the task
        """
        pass

    def notify_reminder(self, task_title: str, task_details: str):
        """
        Send a persistent reminder notification for a task.

        Args:
            task_title: The title of the task
            task_details: Details about the task
        """
        pass

    def notify_urgent(self, task_title: str, task_details: str):
        """
        Send a high-priority urgent notification for a task.

        Args:
            task_title: The title of the task
            task_details: Details about the task
        """
        pass

Dependencies { .dependencies }

gntp { .dependency }

Provides desktop notification capabilities via Growl Notification Transport Protocol.

@satisfied-by

Version

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