httpx-sse
Consume Server-Sent Event (SSE) messages with HTTPX.
Install
httpx-sse on PyPI
pip
pip install httpx-sseuv
uv add httpx-ssepoetry
poetry add httpx-ssePackage facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | aging — 307 days since the last release |
| Last repo commit | |
| First released | |
| Popularity | one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-13) |
Evidence: httpx_sse-0.4.3-py3-none-any.whl
About httpx-sse
from the package's own PyPI description — quoted content, verbatim
httpx-sse
Build Status (image) Coverage (image) Package version (image)
Consume Server-Sent Event (SSE) messages with HTTPX.
Table of contents
Installation
NOTE: This is beta software. Please be sure to pin your dependencies.
pip install httpx-sse=="0.4.*"
Quickstart
httpx-sse provides the connect_sse and aconnect_sse helpers for connecting to an SSE endpoint. The resulting EventSource object exposes the .iter_sse() and .aiter_sse() methods to iterate over the...
Read as markdown · JSON record · Source repository · Homepage
AI interpretation — verify before relying
AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page
Provides synchronous and asynchronous helpers to consume Server-Sent Event (SSE) streams from HTTP endpoints using HTTPX, with built-in event parsing and reconnection support via Last-Event-ID.
Low friction; pure Python wheel with no runtime dependencies. Maintenance shows aging status—last release was 307 days ago—but the repository remains active with recent commits and the package is in beta, so pinning to 0.4.* as documented is advisable.
MIT license permits commercial and private use with minimal restrictions; no copyleft obligations or patent clauses.
Usage
import httpx
from httpx_sse import connect_sse
with httpx.Client() as client:
with connect_sse(client, "GET", "http://example.com/sse") as event_source:
for sse in event_source.iter_sse():
print(sse.event, sse.data)
Requires HTTPX to be installed separately; httpx-sse provides only the SSE layer on top of it.
Verdict: Lightweight, dependency-free SSE consumer for HTTPX with solid coverage of the SSE spec and both sync/async support. Beta status and 307 days since last release warrant pinning to 0.4.* as the maintainer recommends. No known vulnerabilities and permissive MIT license make it safe for most use cases.
Needs verification
- Whether HTTPX is an implicit peer dependency or truly optional at runtime.
- Performance characteristics under high-frequency event streams or large payloads.
- Stability guarantees or roadmap for moving out of beta status.
Similar packages
permissive · top 1,000 on PyPI
datadog-api-clientpermissive · top 1,000 on PyPI
starlettepermissive · top 100 on PyPI
retryingpermissive · top 1,000 on PyPI
retrypermissive · top 1,000 on PyPI
crc32ccopyleft · top 1,000 on PyPI
respxpermissive · top 1,000 on PyPI
httpxpermissive · top 100 on PyPI
pytest-httpxpermissive · top 1,000 on PyPI
backoffpermissive · top 1,000 on PyPI