Cross-platform desktop push-notifications.
Project description
Desktop Notifications
Simple cross-platform (Windows/Linux) Python3 module for displaying desktop notifications.
Installation
$ pip install py-notifier
Requirements
Windows:
win10toast
- Python library (will be installed automatically)
Linux:
libnotify-bin
CLI tool (manual installation is required). For Ubuntu run:
sudo apt-get install libnotify-bin
Example
from pynotifier import Notification
Notification(
title='Notification Title',
description='Notification Description',
icon_path='path/to/image/file/icon.png', # On Windows .ico is required, on Linux - .png
duration=5, # Duration in seconds
urgency=Notification.URGENCY_CRITICAL
).send()
Author
License
The project is licensed under the terms of the MIT License, see the LICENSE file for more information.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
py-notifier-0.1.3.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for py_notifier-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3fe671cc987592b0b01766f82d814bcbe56ae5b5632765248ea1fba4a7e9518 |
|
MD5 | 7c596e5a238d84d1e8b31e118709e85f |
|
BLAKE2b-256 | 45f40d26a4226ea1d8f0cb6a4c55e1d85f79f5810fbaf3d382badc8ea5c661bb |