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

Notification Icon Manager

Build a notification manager that sends Growl notifications with embedded image icons.

Overview

Create a system that sends desktop notifications with custom icons embedded as binary data. The icons should be loaded from image files and embedded directly into the notification rather than referenced by URL.

Capabilities

Initialize Notification Manager

Create a manager that connects to a Growl server with configurable connection parameters.

Load Image Files

Read image files (PNG, JPEG) from disk and prepare them as binary data.

Send Notifications with Embedded Icons

Send notifications to Growl with icons embedded as binary resources. Each notification must:

  • Register the application with Growl (if not already registered)
  • Embed the icon as a binary resource
  • Include title and description text
  • Specify notification type

Test Cases

  • Load a PNG file and send a notification with it embedded as a binary resource @test
  • Load a JPEG file and send a notification with it embedded as a binary resource @test
  • Send multiple notifications with different embedded icons @test

@generates

API

class NotificationIconManager:
    """Manages sending notifications with embedded icon resources."""

    def __init__(self, hostname='localhost', port=23053, password=None):
        """
        Initialize the notification icon manager.

        Args:
            hostname: Growl server hostname
            port: Growl server port
            password: Optional password for authentication
        """
        pass

    def load_icon(self, file_path):
        """
        Load an icon file and prepare it as a binary resource.

        Args:
            file_path: Path to the image file

        Returns:
            Binary data of the image file
        """
        pass

    def send_notification_with_icon(self, title, description, icon_data, app_name='IconManager', note_type='General'):
        """
        Send a notification with an embedded icon resource.

        Args:
            title: Notification title
            description: Notification description
            icon_data: Binary icon data (from load_icon)
            app_name: Application name for registration
            note_type: Type of notification
        """
        pass

Dependencies { .dependencies }

gntp { .dependency }

Provides Growl notification transport protocol support for sending notifications with embedded resources.

Version

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