SSE client for Python
Project description
Server Side Events (SSE) client for Python
A Python client for SSE event sources that seamlessly integrates with urllib3 and requests.
Usage
import pprint
import urllib3
import sseclient
http = urllib3.PoolManager()
response = http.request('GET', 'http://domain.com/events')
client = sseclient.SSEClient(response.stream())
for event in client.events():
pprint.pprint(json.loads(event.data))
Resources
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for sseclient_py-1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 652ed6a98281e346c2a58a63fddd55cf5c65af3412c443de9ed2848ba178b73d |
|
MD5 | 6b67f460c8aff70b6afdd8773eb0e4a3 |
|
BLAKE2b-256 | 063b516a972070743aaf8ba317ea0eb9bc9bf725955837c02122aa353824d248 |