{"id":13725314,"url":"https://github.com/singingwolfboy/flask-sse","last_synced_at":"2025-05-16T13:07:38.763Z","repository":{"id":48803266,"uuid":"56009196","full_name":"singingwolfboy/flask-sse","owner":"singingwolfboy","description":"Server-Sent Events for Flask","archived":false,"fork":false,"pushed_at":"2024-06-07T07:16:36.000Z","size":28,"stargazers_count":319,"open_issues_count":8,"forks_count":49,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-04-09T08:06:43.081Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://flask-sse.readthedocs.org","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/singingwolfboy.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"tidelift":"pypi/Flask-SSE"}},"created_at":"2016-04-11T21:32:13.000Z","updated_at":"2025-03-15T01:23:23.000Z","dependencies_parsed_at":"2024-06-07T08:49:35.075Z","dependency_job_id":null,"html_url":"https://github.com/singingwolfboy/flask-sse","commit_stats":{"total_commits":38,"total_committers":5,"mean_commits":7.6,"dds":"0.21052631578947367","last_synced_commit":"c51c798f6ba5e526e83c58b40a10f8957e68a261"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/singingwolfboy%2Fflask-sse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/singingwolfboy%2Fflask-sse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/singingwolfboy%2Fflask-sse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/singingwolfboy%2Fflask-sse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/singingwolfboy","download_url":"https://codeload.github.com/singingwolfboy/flask-sse/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254535829,"owners_count":22087399,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T01:02:19.194Z","updated_at":"2025-05-16T13:07:38.744Z","avatar_url":"https://github.com/singingwolfboy.png","language":"Python","funding_links":["https://tidelift.com/funding/github/pypi/Flask-SSE"],"categories":["Python"],"sub_categories":[],"readme":"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. \u003chttp://flask-sse.readthedocs.org/\u003e`_\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://github.com/singingwolfboy/flask-sse/workflows/Test/badge.svg\n   :target: https://github.com/singingwolfboy/flask-sse/actions?query=workflow%3ATest\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\u0026style=flat\n   :target: http://flask-sse.readthedocs.org/\n   :alt: Documentation\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsingingwolfboy%2Fflask-sse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsingingwolfboy%2Fflask-sse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsingingwolfboy%2Fflask-sse/lists"}