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 details)
Built Distribution
File details
Details for the file py-notifier-0.3.2.tar.gz
.
File metadata
- Download URL: py-notifier-0.3.2.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
f5446a948aca471de291bda35605df5266290abb6a7bd6f24ba91cbe5050be53
|
|
MD5 |
cd47904ae9834308e7fe7129c8dc3717
|
|
BLAKE2b-256 |
292eeb9ebd729ee97cf1c6cff9158c175fc2c314750f846a049149c13f2a41f4
|
File details
Details for the file py_notifier-0.3.2-py3-none-any.whl
.
File metadata
- Download URL: py_notifier-0.3.2-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
c22a577e0b8ecb73e93d545489d3c65cc50e96fa9348885602fcd20a44f05909
|
|
MD5 |
df380884a15ab8c8dc722653b9857a21
|
|
BLAKE2b-256 |
89775927c0eca913c849c5caa9acfc935c6fe10e290e120fa38c001fabf66271
|