skillfed

httpx-sse

Consume Server-Sent Event (SSE) messages with HTTPX.

httpx-sse Permissive license MIT AGING 212 v0.4.3 released

Install

httpx-sse on PyPI

pip

pip install httpx-sse

uv

uv add httpx-sse

poetry

poetry add httpx-sse

Package 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

Development Status :: 4 - BetaIntended Audience :: DevelopersProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9

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.
server-sent events SSE clienthttpx sse streamingreal-time event streaming pythonasync sse consumerhttp event stream parserserver sent events httpx

Similar packages