Growl Notification Transport Protocol for Python
80
Build a notification system that sends desktop notifications for task management events with different priorities and behaviors.
Create a TaskNotifier class that sends desktop notifications about task events. The class should:
@generates
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
"""
passProvides desktop notification capabilities via Growl Notification Transport Protocol.
@satisfied-by
Install with Tessl CLI
npx tessl i tessl/pypi-gntpevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10