Cross-platform desktop push-notifications.
Project description
Desktop Notifications
Simple Python3 module for displaying desktop notifications on Windows, Linux and MacOS.
Installation
$ pip install py-notifier
Requirements
Windows:
win10toast
- Python module
Linux:
libnotify-bin
CLI tool (manual installation is required). For Ubuntu run:
sudo apt-get install libnotify-bin
MacOS:
pync
- Python module
Example
from pynotifier import Notification Notification( title='Notification Title', description='Notification Description', icon_path='/absolute/path/to/image/icon.png', # On Windows .ico is required, on Linux - .png duration=5, # Duration in seconds urgency='normal' ).send()
Development
$ make ci Lint and Test clean Remove Python file artifacts and virtualenv lint Lint source test Run tests venv Creates the virtualenv and installs tox
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.3.2.tar.gz
(4.5 kB
view hashes)
Built Distribution
Close
Hashes for py_notifier-0.3.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c22a577e0b8ecb73e93d545489d3c65cc50e96fa9348885602fcd20a44f05909 |
|
MD5 | df380884a15ab8c8dc722653b9857a21 |
|
BLAKE2-256 | 89775927c0eca913c849c5caa9acfc935c6fe10e290e120fa38c001fabf66271 |