{ "info": { "author": "matiboy", "author_email": "mathieu@redapesolutions.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Framework :: Django", "Framework :: Django :: 1.10", "Framework :: Django :: 1.9", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5" ], "description": "================================\nDjango Safari Push Notifications\n================================\n\n.. image:: https://img.shields.io/pypi/v/django-safari-notifications.svg\n :target: https://pypi.python.org/pypi/django-safari-notifications\n :alt: Latest PyPI version\n\n.. image:: https://travis-ci.org/matiboy/django_safari_notifications.png?branch=master\n :target: https://travis-ci.org/matiboy/django_safari_notifications\n\nSupport for Safari Push Notifications from within Django. Note that this package helps *registering* notifications, not sending them. Safari Push works with APNs, so for sending, please use `APNs Clerk`_.\n\nDocumentation\n-------------\n\nThe full documentation will soon be at https://django-safari-notifications.readthedocs.io.\n\nFor the Safari Push documentations, refer to `Apple Safari Push`_.\n\nQuickstart\n----------\n\nInstall django_safari_notifications::\n\n pip install django-safari-notifications\n\nIf you already have a valid :code:`pushPackage.zip`, please serve it directly via your web server (Nginx/Apache) at the corresponding url: :code:`{webServiceUrl}/{version}/pushPackages/{websitePushID}` (refer to `Apple Safari Push`_)\n\nElse, you *must* subclass :code:`django_safari_notifications.apps.DjangoSafariNotificationsConfig` and set the :code:`cert` and :code:`passphrase` values.\n\n.. code-block:: python\n\n from django_safari_notifications.apps import DjangoSafariNotificationsConfig\n\n class MySafariNotificationsConfig(DjangoSafariNotificationsConfig):\n cert = '/path/to/cert.pem'\n passphrase = 'passphrase for key'\n\nthen add your config to your :code:`INSTALLED_APPS`:\n\n.. code-block:: python\n\n INSTALLED_APPS = (\n ...\n 'my_safari_app.apps.MySafariNotificationsConfig', # if you need the pushPackage to be dynamically built\n ## OR ##\n 'django_safari_notifications.apps.DjangoSafariNotificationsConfig', # If you are serving your own push package via Nginx\n ...\n )\n\nAdd django_safari_notifications's URL patterns:\n\n.. code-block:: python\n\n from django_safari_notifications import urls as django_safari_notifications_urls\n\n\n urlpatterns = [\n ...\n url(r'^', include(django_safari_notifications_urls, namespace='safari_pn')),\n ...\n ]\n\nDo not use any prefix for the urls, unless you are serving your own :code:`pushPackage.zip` statically\n\nFeatures\n--------\n\n* TODO\n\nRunning Tests\n-------------\n\nDoes the code actually work?\n\n::\n\n source /bin/activate\n (myenv) $ pip install tox\n (myenv) $ tox\n\nCredits\n-------\n\nTools used in rendering this package:\n\n* Cookiecutter_\n* `cookiecutter-djangopackage`_\n\n.. _Cookiecutter: https://github.com/audreyr/cookiecutter\n.. _`cookiecutter-djangopackage`: https://github.com/pydanny/cookiecutter-djangopackage\n\n\n.. _`Apple Safari Push`: https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/NotificationProgrammingGuideForWebsites/PushNotifications/PushNotifications.html#//apple_ref/doc/uid/TP40013225-CH3-SW7\n\n.. _`APNs Clerk`: https://pypi.python.org/pypi/apns-clerk/0.2.0\n\n\n\n\nHistory\n-------\n\n0.1.0 (2016-12-10)\n++++++++++++++++++\n\n* First release on PyPI.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/matiboy/django-safari-notifications", "keywords": "django-safari-notifications", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "django-safari-notifications", "package_url": "https://pypi.org/project/django-safari-notifications/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-safari-notifications/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/matiboy/django-safari-notifications" }, "release_url": "https://pypi.org/project/django-safari-notifications/0.1.1/", "requires_dist": null, "requires_python": null, "summary": "Support for Safari Push Notifications from within Django", "version": "0.1.1" }, "last_serial": 2536216, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "675ad0015203f5a78d787ff3253682ac", "sha256": "e48f994abe563aaad97c7bb234bde0ec88b20944b1a3eb1585dfd65170d55305" }, "downloads": -1, "filename": "django_safari_notifications-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "675ad0015203f5a78d787ff3253682ac", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 11018, "upload_time": "2016-12-12T07:12:12", "url": "https://files.pythonhosted.org/packages/5d/e8/df4b7f04b9a3848cc926cb51b383161bb7c545d4c3953e865f2809e23085/django_safari_notifications-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b5782ad48a5118ba10f91800b3406830", "sha256": "b3f6bf52d979104a11ddca0d33393c9154235fadbf1d7ef67deb6d2bd9f21e89" }, "downloads": -1, "filename": "django-safari-notifications-0.1.0.tar.gz", "has_sig": false, "md5_digest": "b5782ad48a5118ba10f91800b3406830", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9502, "upload_time": "2016-12-12T07:12:09", "url": "https://files.pythonhosted.org/packages/ac/0d/add4fda9206382f1f0c073dd5282282a85990c6f0c4cf3090abfaacb833e/django-safari-notifications-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "7eab30db43d6f4bf5af1a84b3520f718", "sha256": "d325a0e43bf38b3f3cea9e62a040ebbf836f000415a7065eba94db372d2c66a3" }, "downloads": -1, "filename": "django-safari-notifications-0.1.1.tar.gz", "has_sig": false, "md5_digest": "7eab30db43d6f4bf5af1a84b3520f718", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10184, "upload_time": "2016-12-23T08:25:08", "url": "https://files.pythonhosted.org/packages/da/c8/819fdcb5ebc321cc631321ab83863f1dc22005b32cfeb5568e167929569a/django-safari-notifications-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7eab30db43d6f4bf5af1a84b3520f718", "sha256": "d325a0e43bf38b3f3cea9e62a040ebbf836f000415a7065eba94db372d2c66a3" }, "downloads": -1, "filename": "django-safari-notifications-0.1.1.tar.gz", "has_sig": false, "md5_digest": "7eab30db43d6f4bf5af1a84b3520f718", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10184, "upload_time": "2016-12-23T08:25:08", "url": "https://files.pythonhosted.org/packages/da/c8/819fdcb5ebc321cc631321ab83863f1dc22005b32cfeb5568e167929569a/django-safari-notifications-0.1.1.tar.gz" } ] }