Skip to main content

python-webnoti

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.

Metadata

Release files for python-webnoti 0.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-webnoti 0.4.1
File Size Uploaded Provenance Actions
python-webnoti-0.4.1.tar.gz 6.8 kB Without provenance Details for python-webnoti-0.4.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for python-webnoti 0.4.1
File Interpreter ABI Platform Actions
python_webnoti-0.4.1-py3-none-any.whl Python 3 none any Details for python_webnoti-0.4.1-py3-none-any.whl

Total release size: 14.5 kB

Release files / python-webnoti-0.4.1.tar.gz

Download URL python-webnoti-0.4.1.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
3e40cc682e937bd734e3ed71f1c25547b74d4f286575f9c60f274465c1e92df9
BLAKE2b-256 checksum
How to use checksums
9875b64e08bc517a578514b5ceae6722209e19234aad1f426482ddc8aca636c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.8

Release files / python_webnoti-0.4.1-py3-none-any.whl

Download URL python_webnoti-0.4.1-py3-none-any.whl
Size 7.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d3ce6bd7af486697c4bb091672af9cd5eee546962fcf17525c93ffc228801dda
BLAKE2b-256 checksum
How to use checksums
bf2ad19ca354b0041c87d827e9dc1808cc56a3a4bdcb987c8824242a4fab6d20
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.8

Security for python-webnoti 0.4.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page