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 icon manager that handles multiple icon formats and sends notifications with appropriate icon representations.
Create a Python module that:
Sends notifications with icons from different sources:
Implements a NotificationIconManager class with the following methods:
send_with_url_icon(title, message, icon_url): Sends a notification with an icon specified by URLsend_with_file_icon(title, message, image_path): Sends a notification with an icon loaded from a local image file as binary datasend_with_multiple_icons(notifications): Sends multiple notifications, each with their own icon (URL or file-based)The implementation should:
@generates
class NotificationIconManager:
"""Manages notifications with different icon formats."""
def __init__(self, app_name="IconManager", hostname="localhost", port=23053):
"""Initialize the icon manager with application settings."""
pass
def send_with_url_icon(self, title, message, icon_url):
"""Send a notification with an icon specified by URL.
Args:
title: The notification title
message: The notification message
icon_url: URL to the icon (HTTP or file://)
"""
pass
def send_with_file_icon(self, title, message, image_path):
"""Send a notification with an icon from a local file as binary data.
Args:
title: The notification title
message: The notification message
image_path: Path to the local image file
"""
pass
def send_with_multiple_icons(self, notifications):
"""Send multiple notifications with different icon types.
Args:
notifications: List of dicts with keys 'title', 'message',
and either 'icon_url' or 'image_path'
"""
passProvides desktop notification support with icon handling capabilities.