requests-sse
server-sent events python client library based on requests
Decision gist · record as of 2026-08-14
Yes. Low install friction, active maintenance, permissive license, no known vulnerabilities, and a straightforward API make this a solid choice for SSE consumption in Python. Install it if you need to consume Server-Sent Events and prefer a synchronous, requests-based approach over async alternatives.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low install friction with a single runtime dependency (requests).
- Active maintenance with recent commits and support across Python 3.7 through 3.14, including PyPy.
License · maintenance · safety
Apache-2.0 (permissive) — Licensed under Apache-2.0 (permissive), allowing free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.
last release 2026-03-11 (156 days) · last repo commit 2026-03-18 · 9 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 217,590 downloads/mo, #9,355 on PyPI
Alternatives
Verify before relying
pip install requests-sse
import requests
from requests_sse import EventSource
with EventSource("https://example.com/stream", timeout=30) as event_source:
for event in event_source:
print(event)- Whether the package handles reconnection logic or requires manual retry on connection loss
- Performance characteristics when consuming high-frequency event streams
- Support for custom headers or authentication beyond what requests provides
What it is and what it does
requests-sse wraps the requests library to consume Server-Sent Events from HTTP endpoints. It provides an EventSource context manager that yields individual events from an SSE stream, with built-in exception types (InvalidStatusCodeError, InvalidContentTypeError) for handling protocol violations. The package is a thin, synchronous client designed for straightforward SSE consumption in Python applications.
Typical usage involves opening an EventSource to a streaming endpoint, iterating over events in a loop, and catching requests or SSE-specific exceptions. It's built on top of requests, so it inherits that library's connection handling, timeout management, and HTTP features. The package supports Python 3.7 and later, including current and recent Python versions.
Use it for
- Consume real-time updates from public SSE endpoints like Wikimedia event streams or similar live data feeds
- Build monitoring dashboards that pull continuous event streams from backend services
- Integrate live notifications or status updates into Python applications without polling
- Process event-driven data pipelines where events arrive asynchronously from an HTTP source
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Low install friction, active maintenance, permissive license, no known vulnerabilities, and a straightforward API make this a solid choice for SSE consumption in Python. Install it if you need to consume Server-Sent Events and prefer a synchronous, requests-based approach over async alternatives.
Install
requests-sse on PyPI
Before you install
Low install friction with a single runtime dependency (requests). Active maintenance with recent commits and support across Python 3.7 through 3.14, including PyPy.
License in practice
Licensed under Apache-2.0 (permissive), allowing free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.
Quickstart
pip install requests-sse
import requests
from requests_sse import EventSource
with EventSource("https://example.com/stream", timeout=30) as event_source:
for event in event_source:
print(event)
Verify before relying
- Whether the package handles reconnection logic or requires manual retry on connection loss
- Performance characteristics when consuming high-frequency event streams
- Support for custom headers or authentication beyond what requests provides
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release <4.0,>=3.7 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagerequests |
| Maintenance | Actively maintained 156 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 217,590 / month, #9,355 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: PythonProgramming 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.14Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: Libraries :: Python ModulesTyping :: Typed |
Evidence: requests_sse-0.5.3-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 client”
- requests-sseProvides a Python client for consuming Server-Sent Events (SSE)…
- aiohttp-sse-client2Provides an async Python client for consuming Server-Sent Events…
- sseclient-pyParses Server-Sent Events (SSE) from HTTP response streams, yielding…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also aiohttp-sse-client · httpx-sse · sseclient-py · launchdarkly-eventsource · aiohttp-sse-client2 · django-eventstream · sseclient · filigran-sseclient · sse-starlette · aiohttp-sse