Metadata-Version: 2.0
Name: python-webnoti
Version: 0.1.2
Summary: Easy-to-use Web Push Notification Library
Home-page: https://github.com/puilp0502/python-webnoti
Author: Frank Yang
Author-email: puilp0502@gmail.com
License: MIT
Keywords: web push notification
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Software Development :: Libraries
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Requires-Dist: PyJWT
Requires-Dist: cryptography
Requires-Dist: requests

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.


