{ "info": { "author": "David Baumgold", "author_email": "david@davidbaumgold.com", "bugtrack_url": null, "classifiers": [], "description": "Flask SSE |build-status| |coverage-status| |docs|\n=================================================\nA Flask extension for HTML5 `server-sent events`_ support, powered by Redis_.\n\nExample of sending events:\n\n.. code-block:: python\n\n from flask import Flask\n from flask_sse import sse\n\n app = Flask(__name__)\n app.config[\"REDIS_URL\"] = \"redis://localhost\"\n app.register_blueprint(sse, url_prefix='/stream')\n\n @app.route('/send')\n def send_message():\n sse.publish({\"message\": \"Hello!\"}, type='greeting')\n return \"Message sent!\"\n\nTo receive events on a webpage, use Javascript to connect to the event stream,\nlike this:\n\n.. code-block:: javascript\n\n var source = new EventSource(\"{{ url_for('sse.stream') }}\");\n source.addEventListener('greeting', function(event) {\n var data = JSON.parse(event.data);\n // do what you want with this data\n }, false);\n\n`The full documentation for this project\nis hosted on ReadTheDocs. `_\n\n.. _server-sent events: https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events\n.. _Redis: http://www.redis.io/\n\n.. |build-status| image:: https://travis-ci.org/singingwolfboy/flask-sse.svg?branch=master&style=flat\n :target: https://travis-ci.org/singingwolfboy/flask-sse\n :alt: Build status\n.. |coverage-status| image:: http://codecov.io/github/singingwolfboy/flask-sse/coverage.svg?branch=master\n :target: http://codecov.io/github/singingwolfboy/flask-sse?branch=master\n :alt: Test coverage\n.. |docs| image:: https://readthedocs.org/projects/flask-sse/badge/?version=latest&style=flat\n :target: http://flask-sse.readthedocs.org/\n :alt: Documentation", "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/singingwolfboy/flask-sse", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "Flask-SSE", "package_url": "https://pypi.org/project/Flask-SSE/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/Flask-SSE/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/singingwolfboy/flask-sse" }, "release_url": "https://pypi.org/project/Flask-SSE/0.2.1/", "requires_dist": null, "requires_python": null, "summary": "Server-Sent Events for Flask", "version": "0.2.1" }, "last_serial": 2066284, "releases": { "0.2": [], "0.2.1": [ { "comment_text": "", "digests": { "md5": "dbee160b9a93f9098e25dfaf1ae9a15d", "sha256": "102505a018d2924cbc41e74037290cc97525887bd234c214a11e22fc97739886" }, "downloads": -1, "filename": "Flask_SSE-0.2.1-py2.7.egg", "has_sig": false, "md5_digest": "dbee160b9a93f9098e25dfaf1ae9a15d", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 7593, "upload_time": "2016-04-15T20:55:41", "url": "https://files.pythonhosted.org/packages/f9/f2/7e808f136f0c4f08d69b32b39d39dca00d235c212792d62d166b69a3b77b/Flask_SSE-0.2.1-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "8b816b3d4fdb7a78cc371b710c85fa76", "sha256": "db93edc4d04fe5c843135c4216877395d4b8233df85c76202701bd5cd8f187ff" }, "downloads": -1, "filename": "Flask_SSE-0.2.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "8b816b3d4fdb7a78cc371b710c85fa76", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 5908, "upload_time": "2016-04-15T20:55:51", "url": "https://files.pythonhosted.org/packages/7b/0a/9ec38dc6d87e3678ec2ac0213ab89416d8a25b1d193bfd0547c27e8abade/Flask_SSE-0.2.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6d4e51d4d511020b6fb2341e5a3ea159", "sha256": "3723723b78ff67c32f3954a9262eb78bbe324cacd40c6aad5d222ea48f50258d" }, "downloads": -1, "filename": "Flask-SSE-0.2.1.tar.gz", "has_sig": false, "md5_digest": "6d4e51d4d511020b6fb2341e5a3ea159", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 482893, "upload_time": "2016-04-15T20:55:30", "url": "https://files.pythonhosted.org/packages/4c/25/49b4ee4b2a6d41da593c0d9326738f5c81766638fd1bca4e87a5eec005a1/Flask-SSE-0.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "dbee160b9a93f9098e25dfaf1ae9a15d", "sha256": "102505a018d2924cbc41e74037290cc97525887bd234c214a11e22fc97739886" }, "downloads": -1, "filename": "Flask_SSE-0.2.1-py2.7.egg", "has_sig": false, "md5_digest": "dbee160b9a93f9098e25dfaf1ae9a15d", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 7593, "upload_time": "2016-04-15T20:55:41", "url": "https://files.pythonhosted.org/packages/f9/f2/7e808f136f0c4f08d69b32b39d39dca00d235c212792d62d166b69a3b77b/Flask_SSE-0.2.1-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "8b816b3d4fdb7a78cc371b710c85fa76", "sha256": "db93edc4d04fe5c843135c4216877395d4b8233df85c76202701bd5cd8f187ff" }, "downloads": -1, "filename": "Flask_SSE-0.2.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "8b816b3d4fdb7a78cc371b710c85fa76", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 5908, "upload_time": "2016-04-15T20:55:51", "url": "https://files.pythonhosted.org/packages/7b/0a/9ec38dc6d87e3678ec2ac0213ab89416d8a25b1d193bfd0547c27e8abade/Flask_SSE-0.2.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6d4e51d4d511020b6fb2341e5a3ea159", "sha256": "3723723b78ff67c32f3954a9262eb78bbe324cacd40c6aad5d222ea48f50258d" }, "downloads": -1, "filename": "Flask-SSE-0.2.1.tar.gz", "has_sig": false, "md5_digest": "6d4e51d4d511020b6fb2341e5a3ea159", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 482893, "upload_time": "2016-04-15T20:55:30", "url": "https://files.pythonhosted.org/packages/4c/25/49b4ee4b2a6d41da593c0d9326738f5c81766638fd1bca4e87a5eec005a1/Flask-SSE-0.2.1.tar.gz" } ] }