--- id: httpx-sse version: "0.4.3" license: MIT license_treatment: permissive maintenance: aging --- # httpx-sse — Consume Server-Sent Event (SSE) messages with HTTPX. License: permissive · Maintenance: aging · Popularity: top 1,000 on PyPI ## Install pip install httpx-sse uv add httpx-sse poetry add httpx-sse ## Description # httpx-sse [![Build Status](https://dev.azure.com/florimondmanca/public/_apis/build/status/florimondmanca.httpx-sse?branchName=master)](https://dev.azure.com/florimondmanca/public/_build?definitionId=19) [![Coverage](https://codecov.io/gh/florimondmanca/httpx-sse/branch/master/graph/badge.svg)](https://codecov.io/gh/florimondmanca/httpx-sse) [![Package version](https://badge.fury.io/py/httpx-sse.svg)](https://pypi.org/project/httpx-sse) Consume [Server-Sent Event (SSE)](https://html.spec.whatwg.org/multipage/server-sent-events.html#server-sent-events) messages with [HTTPX](https://www.python-httpx.org). **Table of contents** - [Installation](#installation) - [Quickstart](#quickstart) - [How-To](#how-to) - [API Reference](#api-reference) ## Installation **NOTE**: This is beta software. Please be sure to pin your dependencies. ```bash pip install httpx-sse=="0.4.*" ``` ## Quickstart `httpx-sse` provides the [`connect_sse`](#connect_sse) and [`aconnect_sse`](#aconnect_sse) helpers for connecting to an SSE endpoint. The resulting [`EventSource`](#eventsource) object exposes the [`.iter_sse()`](#iter_sse) and [`.aiter_sse()`](#aiter_sse) methods to iterate over the... ## AI interpretation — verify before relying 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. 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. [View on SkillFed](https://skillfed.io/packages/httpx-sse) · [View on PyPI](https://pypi.org/project/httpx-sse/)