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.
To manually generate private key:
from webnoti import get_private_key
get_private_key('privkey.pem', b'password', generate=True)
This will generate private key named privkey.pem with password password (None if not encrypted) in current working directory.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file python_webnoti-0.3.0-py3-none-any.whl.
File metadata
- Download URL: python_webnoti-0.3.0-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d20f69ce0d5a67386fe55f7f3d33c5e9a00fa278f224fe1ef05b2905f0a926be
|
|
| MD5 |
13b309eadbca46c125f77905cc2c10ee
|
|
| BLAKE2b-256 |
73ab5de8a96bb340f65d28e10e8fbfd7dbe3172610393caa7179f0e7217a9b53
|