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='/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.1.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

py_notifier-0.3.1-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file py-notifier-0.3.1.tar.gz.

File metadata

  • Download URL: py-notifier-0.3.1.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.6.9

File hashes

Hashes for py-notifier-0.3.1.tar.gz
Algorithm Hash digest
SHA256 8054f61cf1737c4535863691cad2ebe9f08ec368bc10be2b47c912cc7ad1baab
MD5 14879bba21fa2e80417c1506c730695e
BLAKE2b-256 a7d7a3fcbca62e81f9b230d7ea6ba62492b78100b9323c5ad5d20b8f820e57e3

See more details on using hashes here.

File details

Details for the file py_notifier-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: py_notifier-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.6.9

File hashes

Hashes for py_notifier-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ead748aab46c6140351bfc73502e447530837e0690df645e2cfdd779284cf5bb
MD5 4795b0096ad259fcaf316fcaf4e34e73
BLAKE2b-256 130009621fa2215bd1d0263b297a89fcd486cfe4b6a09c94537597dfd03730dc

See more details on using hashes here.

Supported by

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