{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/15"}],"enrichment":{"capability":"Provides a Python client for consuming Server-Sent Events (SSE) streams over HTTP using the requests library, with built-in error handling for invalid status codes and content types.","skillfed_tags":["streaming","http-client","real-time"],"use_cases":["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"],"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.\n\nTypical 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.","worth_installing":"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."},"id":"requests-sse","links":{"html":"https://skillfed.io/packages/requests-sse","md":"https://skillfed.io/packages/requests-sse.md","pypi":"https://pypi.org/project/requests-sse/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-03-11","license_spdx":null,"license_treatment":"permissive","name":"requests-sse","python_support":"supports_current","summary":"server-sent events python client library based on requests"},"popularity":{"monthly_downloads":217590,"position":9355,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.5.3"}
