{"id":17150405,"url":"https://github.com/dlech/debian-python-aiohttp-sse","last_synced_at":"2026-01-19T11:33:05.127Z","repository":{"id":40471438,"uuid":"435019164","full_name":"dlech/debian-python-aiohttp-sse","owner":"dlech","description":"Debian packaging for aiohtto-sse","archived":false,"fork":false,"pushed_at":"2023-03-06T06:04:30.000Z","size":36,"stargazers_count":0,"open_issues_count":6,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-06T03:42:37.331Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dlech.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGES.rst","contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-04T22:07:45.000Z","updated_at":"2021-12-04T22:08:34.000Z","dependencies_parsed_at":"2024-12-19T11:27:58.972Z","dependency_job_id":"f5fbb335-85f5-4986-9a59-4a4078a0e2a4","html_url":"https://github.com/dlech/debian-python-aiohttp-sse","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/dlech/debian-python-aiohttp-sse","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dlech%2Fdebian-python-aiohttp-sse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dlech%2Fdebian-python-aiohttp-sse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dlech%2Fdebian-python-aiohttp-sse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dlech%2Fdebian-python-aiohttp-sse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dlech","download_url":"https://codeload.github.com/dlech/debian-python-aiohttp-sse/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dlech%2Fdebian-python-aiohttp-sse/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28566461,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T08:53:44.001Z","status":"ssl_error","status_checked_at":"2026-01-19T08:52:40.245Z","response_time":67,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-10-14T21:35:34.269Z","updated_at":"2026-01-19T11:33:05.111Z","avatar_url":"https://github.com/dlech.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"aiohttp-sse\n===========\n.. image:: https://travis-ci.org/aio-libs/aiohttp-sse.svg?branch=master\n    :target: https://travis-ci.org/aio-libs/aiohttp-sse\n\n.. image:: https://codecov.io/gh/aio-libs/aiohttp-sse/branch/master/graph/badge.svg\n    :target: https://codecov.io/gh/aio-libs/aiohttp-sse\n\n.. image:: https://pyup.io/repos/github/aio-libs/aiohttp-sse/shield.svg\n     :target: https://pyup.io/repos/github/aio-libs/aiohttp-sse/\n     :alt: Updates\n\n.. image:: https://badges.gitter.im/Join%20Chat.svg\n     :target: https://gitter.im/aio-libs/Lobby\n     :alt: Chat on Gitter\n\n\nThe *EventSource** interface is used to receive server-sent events. It connects\nto a server over HTTP and receives events in text/event-stream format without\nclosing the connection. *aiohttp-sse* provides support for server-sent\nevents for aiohttp_.\n\n\nInstallation\n------------\nInstallation process as simple as::\n\n    $ pip install aiohttp-sse\n\n\nMailing List\n------------\n\n*aio-libs* google group: https://groups.google.com/forum/#!forum/aio-libs\n\n\nExample\n-------\n.. code:: python\n\n    import asyncio\n    from aiohttp import web\n    from aiohttp.web import Response\n    from aiohttp_sse import sse_response\n    from datetime import datetime\n\n\n    async def hello(request):\n        loop = request.app.loop\n        async with sse_response(request) as resp:\n            while True:\n                data = 'Server Time : {}'.format(datetime.now())\n                print(data)\n                await resp.send(data)\n                await asyncio.sleep(1)\n        return resp\n\n\n    async def index(request):\n        d = \"\"\"\n            \u003chtml\u003e\n            \u003cbody\u003e\n                \u003cscript\u003e\n                    var evtSource = new EventSource(\"/hello\");\n                    evtSource.onmessage = function(e) {\n                        document.getElementById('response').innerText = e.data\n                    }\n                \u003c/script\u003e\n                \u003ch1\u003eResponse from server:\u003c/h1\u003e\n                \u003cdiv id=\"response\"\u003e\u003c/div\u003e\n            \u003c/body\u003e\n        \u003c/html\u003e\n        \"\"\"\n        return Response(text=d, content_type='text/html')\n\n\n    app = web.Application()\n    app.router.add_route('GET', '/hello', hello)\n    app.router.add_route('GET', '/', index)\n    web.run_app(app, host='127.0.0.1', port=8080)\n\n\nEventSource Protocol\n--------------------\n\n* http://www.w3.org/TR/2011/WD-eventsource-20110310/\n* https://developer.mozilla.org/en-US/docs/Server-sent_events/Using_server-sent_events\n\n\nRequirements\n------------\n\n* Python_ 3.5+\n* aiohttp_ 3+\n\n\nLicense\n-------\n\nThe *aiohttp-sse* is offered under Apache 2.0 license.\n\n.. _Python: https://www.python.org\n.. _asyncio: http://docs.python.org/3.5/library/asyncio.html\n.. _aiohttp: https://github.com/aio-libs/aiohttp\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdlech%2Fdebian-python-aiohttp-sse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdlech%2Fdebian-python-aiohttp-sse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdlech%2Fdebian-python-aiohttp-sse/lists"}