tessl install tessl/pypi-gntp@1.0.0Growl 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%
Build a notification manager that sends Growl notifications with embedded image icons.
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.
Create a manager that connects to a Growl server with configurable connection parameters.
Read image files (PNG, JPEG) from disk and prepare them as binary data.
Send notifications to Growl with icons embedded as binary resources. Each notification must:
@generates
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
"""
passProvides Growl notification transport protocol support for sending notifications with embedded resources.