aiohttp-sse
Server-sent events support for aiohttp.
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained, has no known vulnerabilities, low install friction, and a permissive license. It solves a specific, well-defined problem (server-sent events in aiohttp) with a clean API. Use it when you need to push data from an aiohttp server to browser clients over HTTP.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires aiohttp 3+ and Python 3.8 or later.
- Low friction installation with a single dependency on aiohttp.
- Actively maintained with recent commits and a stable release history since 2017.
License · maintenance · safety
Apache 2 (permissive) — Licensed under Apache 2 (permissive), allowing use in commercial and private projects with minimal restrictions.
last release 2024-02-29 (897 days) · last repo commit 2026-08-10 · 238 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 585,145 downloads/mo, #5,886 on PyPI
Alternatives
Verify before relying
pip install aiohttp-sse
from aiohttp import web
from aiohttp_sse import sse_response
async def stream_handler(request):
async with sse_response(request) as resp:
while resp.is_connected():
await resp.send(data)
return resp- Whether the package handles reconnection and backpressure automatically or if the caller must manage these.
- Performance characteristics under high client counts or message throughput.
- Support for custom event types beyond the default 'message' event.
What it is and what it does
aiohttp-sse wraps the EventSource protocol (server-sent events) for use in aiohttp web applications. It provides a context manager that lets you send data to a client over a persistent HTTP connection without closing it, enabling real-time push notifications and live data streams. The package handles the text/event-stream content type and connection lifecycle, so you focus on generating and sending data.
The typical workflow is to define an aiohttp route handler, use sse_response to open a streaming connection, then loop sending data while checking is_connected(). The client side uses the browser's native EventSource API to receive messages. It's a thin, focused layer on top of aiohttp for one specific use case: pushing events from server to client.
Use it for
- Real-time dashboards or monitoring interfaces that display live server metrics or status updates.
- Live notifications or alerts pushed to web clients without polling.
- Streaming log output or progress updates from long-running server tasks to a web UI.
- Chat or collaboration features where the server broadcasts events to multiple connected clients.
- Stock tickers, sports scores, or other live data feeds delivered to web browsers.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained, has no known vulnerabilities, low install friction, and a permissive license. It solves a specific, well-defined problem (server-sent events in aiohttp) with a clean API. Use it when you need to push data from an aiohttp server to browser clients over HTTP.
Install
aiohttp-sse on PyPI
Before you install
Low friction installation with a single dependency on aiohttp. Actively maintained with recent commits and a stable release history since 2017. Supports current Python versions (3.8–3.12).
Requires aiohttp 3+ and Python 3.8 or later.
License in practice
Licensed under Apache 2 (permissive), allowing use in commercial and private projects with minimal restrictions.
Quickstart
pip install aiohttp-sse
from aiohttp import web
from aiohttp_sse import sse_response
async def stream_handler(request):
async with sse_response(request) as resp:
while resp.is_connected():
await resp.send(data)
return resp
Verify before relying
- Whether the package handles reconnection and backpressure automatically or if the caller must manage these.
- Performance characteristics under high client counts or message throughput.
- Support for custom event types beyond the default 'message' event.
Package facts
| License | Apache 2 permissive |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packageaiohttp |
| Maintenance | Actively maintained 897 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 585,145 / month, #5,886 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Framework :: AsyncIOFramework :: aiohttpIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Internet :: WWW/HTTP |
Evidence: aiohttp_sse-2.2.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “server-sent events aiohttp”
- aiohttp-sseProvides server-sent events (EventSource) support for aiohttp…
- aiohttp-sse-client2Provides an async Python client for consuming Server-Sent Events…
- aiohttp-sse-clientProvides an async Python client for consuming Server-Sent Events…
Give your agent the search over MCP, or paste the wish link into any chat.
More WWW/HTTP packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.
HTTPX is a fully featured HTTP client library for Python that provides both sync and async APIs, with support for HTTP/1.1 and HTTP/2, plus an integrated command-line client.
Install it if you are building new projects or modernizing existing ones that rely on HTTP.
A minimal low-level HTTP client library that sends HTTP requests with thread-safe and task-safe connection pooling, supporting HTTP/1.1, HTTP/2, proxies, and both sync and async interfaces.
aiohttp is an async HTTP client and server framework built on asyncio, supporting both WebSockets and middleware-based routing for building concurrent web applications.
Install it if you need async HTTP client or server capabilities in asyncio-based applications.
See also aiohttp-sse-client · aiohttp-sse-client2 · httpx-sse · sse-starlette · requests-sse · launchdarkly-eventsource · django-eventstream · sseclient · filigran-sseclient · aiohttp-xmlrpc