Skip to main content

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',
                        preload_content=False)
client = sseclient.SSEClient(response)
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

If you're not sure about the file name format, learn more about wheel file names.

sseclient_py-1.4-py2.py3-none-any.whl (4.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file sseclient_py-1.4-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for sseclient_py-1.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 412c2811660a604bfcfd84f7334c7ba876586df71450306f0a4bd187246008d7
MD5 817d0d691ec874b2e76cd9383bc5451e
BLAKE2b-256 b9305065be5da991da492e34fbc3ca1f9d6889fd5a5f9b48b4a1a1d1a897e620

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page