{ "info": { "author": "Radim S\u00fcckr", "author_email": "contact@radimsuckr.cz", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Internet :: WWW/HTTP", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "# OneSignal client\n\nOneSignal client is a wrapper for the OneSignal API which allows you to send notifications to Android, iOS and Web App.\n\nIt is based on ![onesignal-notifications](https://github.com/Lanseuo/onesignal-notifications) library.\n\n## Installation\n\n```\npip install onesignal-client\n```\n\n## Usage\n\n```python\nfrom onesignal import OneSignalClient, SegmentNotification\n\nclient = OneSignal(\"MY_APP_ID\", \"MY_REST_API_KEY\")\nnotification_to_all_users = SegmentNotification(\n contents={\n \"en\": \"Hello from OneSignal-Notifications\"\n },\n included_segments=[SegmentNotification.ALL]\n)\nclient.send(notification_to_all_users)\n```\n\n## Development\n\n> Contributions are welcome\n\n```\npip install --editable .\n```\n\nrun the tests\n\n```\nexport ONESIGNAL_API_KEY=\"...\"\nexport ONESIGNAL_REST_API_KEY=\"...\"\n\npytest\n```\n\n### Docs\n\nTo edit the docs, change the folder and spin up the development server.\n\n```\ncd docs\nnpm install -g vuepress\nvuepress dev\n```\n\n## Meta\n\nLucas Hild - [https://lucas-hild.de](https://lucas-hild.de) \nThis project is licensed under the MIT License - see the LICENSE file for details", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/radimsuckr/onesignal-client", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "onesignal-client", "package_url": "https://pypi.org/project/onesignal-client/", "platform": "", "project_url": "https://pypi.org/project/onesignal-client/", "project_urls": { "Homepage": "https://github.com/radimsuckr/onesignal-client" }, "release_url": "https://pypi.org/project/onesignal-client/0.0.1/", "requires_dist": null, "requires_python": "", "summary": "OneSignal API wrapper", "version": "0.0.1" }, "last_serial": 4958378, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "2a61bbf24449378d0176c2b27beea76a", "sha256": "6d8a261b2d075a116039c4e3529416318b1378ce1b1c2fed1977f5dd96b041a3" }, "downloads": -1, "filename": "onesignal-client-0.0.1.linux-x86_64.tar.gz", "has_sig": false, "md5_digest": "2a61bbf24449378d0176c2b27beea76a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15082, "upload_time": "2019-03-19T12:29:26", "url": "https://files.pythonhosted.org/packages/cc/f6/da7762b089e2424c5e65415aefe00b02206799e7b7455540034054e5666c/onesignal-client-0.0.1.linux-x86_64.tar.gz" }, { "comment_text": "", "digests": { "md5": "13ff9ab1a7e9e9386597429563254883", "sha256": "892cdc13c1b48148880a8f6f902807f6625a7707cd14eaa16490b87d0826c7c0" }, "downloads": -1, "filename": "onesignal_client-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "13ff9ab1a7e9e9386597429563254883", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10420, "upload_time": "2019-03-19T12:32:09", "url": "https://files.pythonhosted.org/packages/48/10/b8606c660bb1a373469305f7e7966acdef90903fbef4e941d81033aaf9cc/onesignal_client-0.0.1-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2a61bbf24449378d0176c2b27beea76a", "sha256": "6d8a261b2d075a116039c4e3529416318b1378ce1b1c2fed1977f5dd96b041a3" }, "downloads": -1, "filename": "onesignal-client-0.0.1.linux-x86_64.tar.gz", "has_sig": false, "md5_digest": "2a61bbf24449378d0176c2b27beea76a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15082, "upload_time": "2019-03-19T12:29:26", "url": "https://files.pythonhosted.org/packages/cc/f6/da7762b089e2424c5e65415aefe00b02206799e7b7455540034054e5666c/onesignal-client-0.0.1.linux-x86_64.tar.gz" }, { "comment_text": "", "digests": { "md5": "13ff9ab1a7e9e9386597429563254883", "sha256": "892cdc13c1b48148880a8f6f902807f6625a7707cd14eaa16490b87d0826c7c0" }, "downloads": -1, "filename": "onesignal_client-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "13ff9ab1a7e9e9386597429563254883", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10420, "upload_time": "2019-03-19T12:32:09", "url": "https://files.pythonhosted.org/packages/48/10/b8606c660bb1a373469305f7e7966acdef90903fbef4e941d81033aaf9cc/onesignal_client-0.0.1-py3-none-any.whl" } ] }