pynotifier
pynotifier copied to clipboard
Python notifications
Desktop Notifications
Simple Python3 module for displaying desktop notifications on Windows, Linux and MacOS.
Installation
$ pip install py-notifier
Requirements
Windows:
WinToaster
- 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.