Skip to main content

Easy-to-use Web Push Notification Library

Project description

python-webnoti
==============

Easy-to-use Python Web Push Notification Library

Installation
------------

Install with pip:

.. code:: sh

$ pip install python-webnoti

Usage
-----

To send a notification:

.. code:: python

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 should be obtained from the client.

Check out `python-webnoti-example<https://github.com/puilp0502/python-webnoti-example>`_ for more details.

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

python_webnoti-0.1.2-py3-none-any.whl (8.0 kB view hashes)

Uploaded Python 3

Supported by

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