Growl Notification Transport Protocol for Python
80
Build a simple application status monitoring utility that sends desktop notifications for various application events.
The utility should provide a simple function that sends quick status notifications to the desktop. The function should be minimally invasive and not crash the application if notifications fail.
send_status_notification("Build", "Build completed successfully") sends a notification with title "Build" and message "Build completed successfully" @testsend_status_notification("Error", "Database connection failed") sends a notification with title "Error" and message "Database connection failed" @test@generates
def send_status_notification(title: str, message: str) -> None:
"""
Sends a desktop notification with the given title and message.
This function sends notifications in a fire-and-forget manner and
swallows any exceptions to avoid disrupting application flow.
Args:
title: The notification title
message: The notification message content
"""
passProvides desktop notification support via the 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