sseclient
Python client library for reading Server Sent Event streams.
What it is and what it does
sseclient is a minimal Python client library for consuming Server Sent Event streams over HTTP. It wraps an SSE endpoint URL and provides an iterator interface: each iteration yields a message object with a 'data' attribute and optional 'event', 'id', and 'retry' fields. The library handles automatic reconnection and retry logic, allowing the server to control retry delays via SSE protocol directives.
The package has no runtime dependencies and accepts any keyword arguments supported by the Requests library (headers, auth, etc.) during initialization. It is marked Production/Stable but aging: the latest release was 2020-09-25, and active maintenance has slowed. It is suitable for applications that need straightforward SSE consumption without frequent updates or cutting-edge feature additions.
Use it for:
- Consume real-time event streams from a server (e.g., live notifications, log tails, stock price updates) in a simple for-loop.
- Build a monitoring client that listens to SSE endpoints and processes incoming events with custom logic.
- Integrate SSE-based APIs (e.g., weather alerts, chat notifications) into a Python application without external async frameworks.
- Prototype or maintain legacy applications that rely on SSE for push-like communication without switching to WebSockets.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Iterates over Server Sent Event (SSE) streams from HTTP endpoints, parsing each message into objects with data and optional event, id, and retry attributes.
Yes, if you need straightforward SSE consumption and can accept an aging codebase. The package is stable, has no dependencies, and carries permissive licensing. However, do not install if you require active maintenance, explicit modern Python version guarantees, or ongoing bug fixes—consider alternatives if your project demands frequent updates.
Install
sseclient on PyPI
pip
pip install sseclientuv
uv add sseclientpoetry
poetry add sseclientInstalling sseclient
Before you install
High install friction: the package is aging with latest release 2020-09-25 and no runtime dependencies, but active maintenance has slowed significantly. Suitable for stable, non-critical integrations where SSE support is needed without ongoing updates.
License in practice
MIT license (permissive) means you can use, modify, and distribute this package freely in commercial or private projects with minimal restrictions—only attribution is typically required.
Quickstart
pip install sseclient
from sseclient import SSEClient
messages = SSEClient('http://mysite.com/sse_stream/')
for msg in messages:
print(msg.data)
Package classifiers indicate Python 2.7 and Python 3 support; compatibility with specific modern Python versions is not explicitly stated.
Verify before relying
- Whether the package works reliably with modern Python versions beyond the generic 'Python 3' classifier.
- Whether automatic reconnection and retry logic handle edge cases in the SSE spec as documented.
- Current test coverage and whether the 11 passing tests from development still apply to version 0.0.27.
Package facts
| License | not declared (permissive) |
| Python support | not specified |
| Install friction | high — source build required |
| Runtime dependencies | none |
| Maintenance | aging — 2,149 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 222,339/month — #9,266 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: sseclient-0.0.27.tar.gz
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
filigran-sseclientProvides a Python iterator interface for…
permissive · top 5,000 on PyPI
launchdarkly-eventsourceConsumes Server-Sent Events (SSE) from remote…
permissive · top 5,000 on PyPI
requests-sseProvides a Python client for consuming…
permissive · top 15,000 on PyPI
sseclient-pyParses Server-Sent Events (SSE) from HTTP…
permissive · top 5,000 on PyPI
httpx-sseConsume Server-Sent Event (SSE) messages from…
permissive · top 1,000 on PyPI
aiohttp-sse-clientProvides an async Python client for consuming…
permissive · top 15,000 on PyPI
aiohttp-sse-client2Provides an async Python client for consuming…
permissive · top 15,000 on PyPI
aiohttp-sseProvides server-sent events (EventSource)…
permissive · top 15,000 on PyPI
sse-starletteProvides Server-Sent Events streaming for…
permissive · top 1,000 on PyPI