Cross-platform desktop notification library for Python
Slowing down. Last release over 2 years ago, little activity since. Fine for existing code; think twice for a new project.
pip install notify-pynotify.py
Cross platform desktop notifications for Python scripts and applications.
Docs
You can read the docs on this Git's Wiki, or here
Supported Platforms.
- Windows 10/11
- macOS 10 >=10.10
- Linux (libnotify)
No dependencies are required other than loguru & jeepney (Only for linux/DBUS).
Install
pip install notify-py
Usage
Send Simple Notification
from notifypy import Notify
notification = Notify()
notification.title = "Cool Title"
notification.message = "Even cooler message."
notification.send()
Send Notification With Icon
from notifypy import Notify
notification = Notify()
notification.title = "Cool Title"
notification.message = "Even cooler message."
notification.icon = "path/to/icon.png"
notification.send()
Send Notification With Sound
from notifypy import Notify
notification = Notify()
notification.title = "Cool Title"
notification.message = "Even cooler message."
notification.audio = "path/to/audio/file.wav"
notification.send()
Sending Notifications without blocking
from notifypy import Notify
notification = Notify()
notification.send(block=False)
Sending with Default Notification Titles/Messages/Icons