{
"info": {
"author": "Rob Kent",
"author_email": "jazzycamel@googlemail.com",
"bugtrack_url": null,
"classifiers": [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5"
],
"description": "PushySDK\n========\n\n|Build Status| |Coverage Status| |PyPI version|\n\nA very simple Python client for the Pushy notification service API.\n\nInstallation\n------------\n\nSimply install using pip:\n\n.. code:: shell\n\n $ pip install PushySDK\n\nor clone this repository and run the following:\n\n.. code:: shell\n\n $ python setup.py install\n\nYou will need to install the following dependencies:\n\n- requests\n- six\n- pypandoc\n\nThis can be done either manually or via pip with the included\n``requirements.txt`` file as follows:\n\n.. code:: shell\n\n $ pip install -r requirements.txt\n\nUsage\n-----\n\nYou will first need to `signup `__ for a\nPushy account and integrate the Pushy SDK into your Android and/or iOS\nmobile application (please refer to the comprehensive `Pushy\nDocumentation `__). Once you have\nsuccessfully sent a test notification from the `Pushy\nDashboard `__ you are ready to write some\npython!\n\nFirst, get your application API key from the `Pushy\nDashboard `__ (Applications > Your App >\nAPI Authentication). Once you have this you can then do the following:\n\n.. code:: python\n\n >>> from PushySDK import Pushy\n >>> pushy=Pushy('')\n\nYou can now request information regarding a specific device (you can get\ndevice IDs from the `Pushy Dashboard `__):\n\n.. code:: python\n\n >>> pushy.deviceInfo('')\n\nThis will return a python dictionary object of information about the\ndevice as follows:\n\n.. code:: python\n\n {\n 'device': {'date': 1445207358, 'platform': 'android'},\n 'presence': {\n 'online': True,\n 'last_active': {'date': 1464006925, 'seconds_ago': 215}\n }, \n pending_notifications': [\n {\n 'date': 1464008196,\n 'expiration': 1466600196,\n 'payload': {'message': 'Hello World!'}, 'id': '5742fe0407c3674e226892f9'\n }\n ]\n }\n\nYou can also return presence information for single or multiple devices\nas follows:\n\n.. code:: python\n\n >>> pushy.devicePresence([''])\n {'presence': [\n {\n 'online': False,\n 'last_active': 1429406442,\n 'id': 'a6f36efb913f1def30c6'\n },\n {\n 'online': True,\n 'last_active': 1468349965,\n 'id': 'fe8f7b2c12e83e5b41d2'\n }\n ]}\n\nTo send a notification to a device or devices:\n\n.. code:: python\n\n >>> data={'message':'Hello from Python and Pushy!'}\n >>> pushy.push('', data)\n >>> pushy.push(['', ''], data)\n\nTo add extra data for iOS\n`APNs `__\nnotifications, a utility function exists to form the request as follows:\n\n.. code:: python\n\n >>> title=\"Python/Pushy Notification\"\n >>> message='Hello from Python and Pushy!'\n >>> badge=1\n >>> sound=\"ping.aiff\"\n >>> apn=pushy.makeIOSNotification(message, badge, sound, title)\n >>> pushy.push(['', ''], data, notification=apn)\n\nThe ``push()`` method will return a dictionary which reports the success\nor failure and a unique ID for the notification which can be used to\ntrack its status:\n\n.. code:: python\n\n {'success': True, 'id': '5742ea5dacf3a92e17ba7126'}\n\nYou can track a notifications status as follows:\n\n.. code:: python\n\n >>> pushy.notificationStatus('')\n {\n \"push\": {\n \"date\": 1464003935,\n \"payload\": {\n \"message\": \"Hello World!\"\n },\n \"expiration\": 1466595935,\n \"pending_devices\": [\n \"fe8f7b2c102e883e5b41d2\"\n ]\n }\n }\n\n.. |Build Status| image:: https://travis-ci.org/jazzycamel/pushy.svg?branch=master\n :target: https://travis-ci.org/jazzycamel/pushy\n.. |Coverage Status| image:: https://s3.amazonaws.com/assets.coveralls.io/badges/coveralls_100.svg\n :target: https://coveralls.io/github/jazzycamel/pushy?branch=master\n.. |PyPI version| image:: https://badge.fury.io/py/PushySDK.svg\n :target: https://badge.fury.io/py/PushySDK\n",
"description_content_type": null,
"docs_url": null,
"download_url": "",
"downloads": {
"last_day": -1,
"last_month": -1,
"last_week": -1
},
"home_page": "https://github.com/jazzycamel/pushy",
"keywords": "Pushy Notification API",
"license": "MIT",
"maintainer": "",
"maintainer_email": "",
"name": "PushySDK",
"package_url": "https://pypi.org/project/PushySDK/",
"platform": "",
"project_url": "https://pypi.org/project/PushySDK/",
"project_urls": {
"Homepage": "https://github.com/jazzycamel/pushy"
},
"release_url": "https://pypi.org/project/PushySDK/0.1.5/",
"requires_dist": null,
"requires_python": "",
"summary": "A very simple Python client for the Pushy notification service API.",
"version": "0.1.5"
},
"last_serial": 2644852,
"releases": {
"0.1.0": [
{
"comment_text": "",
"digests": {
"md5": "bed6a346ca6ad973e7e9c30a9899201d",
"sha256": "114a5d253001126244cfb2f0ca64092fc5b2cffe5af51daaa3f3c21300ba224e"
},
"downloads": -1,
"filename": "PushySDK-0.1.0-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "bed6a346ca6ad973e7e9c30a9899201d",
"packagetype": "bdist_wheel",
"python_version": "3.5",
"requires_python": null,
"size": 3315,
"upload_time": "2017-02-03T14:20:06",
"url": "https://files.pythonhosted.org/packages/f2/e8/f8abebd52eb59eeed53814ceaeafefd52b75053d8c9c3637695b5ab01f9e/PushySDK-0.1.0-py2.py3-none-any.whl"
}
],
"0.1.1": [
{
"comment_text": "",
"digests": {
"md5": "bd9047184c4e0d4ada53aa41e012b566",
"sha256": "0bf5ec12d04c16e5e76b349452f74f26e6bf786da262041482f0a75e97dfd632"
},
"downloads": -1,
"filename": "PushySDK-0.1.1-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "bd9047184c4e0d4ada53aa41e012b566",
"packagetype": "bdist_wheel",
"python_version": "3.5",
"requires_python": null,
"size": 3476,
"upload_time": "2017-02-13T18:32:53",
"url": "https://files.pythonhosted.org/packages/98/59/eb674fb9094d01e7bdf44ea956df5e8ad60400ac31e19c32e28fa5603c1e/PushySDK-0.1.1-py2.py3-none-any.whl"
}
],
"0.1.2": [
{
"comment_text": "",
"digests": {
"md5": "4b089cfe40407b4f0f07ee1e352ef526",
"sha256": "531794036417adb1c1c76ccdc331d2e80c6c841f6cf8aa3422ea48c2c2f19bb4"
},
"downloads": -1,
"filename": "PushySDK-0.1.2-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "4b089cfe40407b4f0f07ee1e352ef526",
"packagetype": "bdist_wheel",
"python_version": "3.5",
"requires_python": null,
"size": 3586,
"upload_time": "2017-02-14T14:04:53",
"url": "https://files.pythonhosted.org/packages/96/ab/83b5f9039c4400d71ecb568fba5a82f6fe1d274d10c7f0b84ceec7e68b49/PushySDK-0.1.2-py2.py3-none-any.whl"
}
],
"0.1.3": [
{
"comment_text": "",
"digests": {
"md5": "a4d55e21aa8d5d16e8848bbb6f448cc0",
"sha256": "7b17a19cc5fd78a38b2ce4aeb9f08da27ae313032638c2388282e1998a589367"
},
"downloads": -1,
"filename": "PushySDK-0.1.3-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "a4d55e21aa8d5d16e8848bbb6f448cc0",
"packagetype": "bdist_wheel",
"python_version": "3.5",
"requires_python": null,
"size": 6847,
"upload_time": "2017-02-15T12:14:54",
"url": "https://files.pythonhosted.org/packages/74/83/8fe3dec4f7b72c6ad6c50e510a84e59c5ff47ec16725fe1833fd14ee6d83/PushySDK-0.1.3-py2.py3-none-any.whl"
}
],
"0.1.4": [
{
"comment_text": "",
"digests": {
"md5": "b7969210aec8e6e3d28e07a1de694d67",
"sha256": "92755f1648b1749710011af7d6ec6f7e09e0fd2e54b4373735f7fcbebdfca782"
},
"downloads": -1,
"filename": "PushySDK-0.1.4-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "b7969210aec8e6e3d28e07a1de694d67",
"packagetype": "bdist_wheel",
"python_version": "3.5",
"requires_python": null,
"size": 6854,
"upload_time": "2017-02-15T19:03:28",
"url": "https://files.pythonhosted.org/packages/e2/13/02757c10fb0787fbb6d0a35188571b27e7cd1d89dc339c585c922b9605a9/PushySDK-0.1.4-py2.py3-none-any.whl"
}
],
"0.1.5": [
{
"comment_text": "",
"digests": {
"md5": "80c00eea8883807f0f76b180e0913805",
"sha256": "07d506c03c34a97cc5d91a847f1d2178922ce5feb3e2a8db87b20fe400bf9480"
},
"downloads": -1,
"filename": "PushySDK-0.1.5-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "80c00eea8883807f0f76b180e0913805",
"packagetype": "bdist_wheel",
"python_version": "3.5",
"requires_python": null,
"size": 6881,
"upload_time": "2017-02-15T19:23:13",
"url": "https://files.pythonhosted.org/packages/59/80/6badb200db2af9034bdf1f394e78f2e4a24ea60928c5dbf26ede8c0181e8/PushySDK-0.1.5-py2.py3-none-any.whl"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "80c00eea8883807f0f76b180e0913805",
"sha256": "07d506c03c34a97cc5d91a847f1d2178922ce5feb3e2a8db87b20fe400bf9480"
},
"downloads": -1,
"filename": "PushySDK-0.1.5-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "80c00eea8883807f0f76b180e0913805",
"packagetype": "bdist_wheel",
"python_version": "3.5",
"requires_python": null,
"size": 6881,
"upload_time": "2017-02-15T19:23:13",
"url": "https://files.pythonhosted.org/packages/59/80/6badb200db2af9034bdf1f394e78f2e4a24ea60928c5dbf26ede8c0181e8/PushySDK-0.1.5-py2.py3-none-any.whl"
}
]
}