Skip to main content

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='path/to/image/file/icon.png', # On Windows .ico is required, on Linux - .png
	duration=5,                              # Duration in seconds
	urgency='normal'
).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.3.0.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distributions

py_notifier-0.3.0-py3.6.egg (5.3 kB view hashes)

Uploaded Source

py_notifier-0.3.0-py3-none-any.whl (4.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page