Easy-to-use Web Push Notification Library
Project description
Easy-to-use Python Web Push Notification Library
Installation
Install with pip:
$ pip install python-webnoti
Usage
To send a notification:
from webnoti import send_notification, get_private_key
send_notification(subscription, "Hello from server") # For Firefox
send_notification(subscription, "Hello from server", # For Chrome
'mailto:admin@example.com', get_private_key('privkey.pem', generate=True))
# subscription can be obtained from the client.
Check out python-webnoti-example for the full example.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for python_webnoti-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13a47fdb57647d0228196f4567c95bd97decb0994670f1cd011db35e134b5648 |
|
MD5 | 67071227929d72c07a6eac12d827b0e4 |
|
BLAKE2b-256 | bfaf7e2f3c80e2938ce126311d178b59e551601d2ef86e9ddc19f3d5a66efbc3 |