Skip to main content

Logic for parse SSE event

Project description

parse-sse

from parse_sse import parse_sse
url = 'http://localhost:8000/your_endpoint'
response = requests.get(url, stream=True)
for event in parse_sse(response):
    print(f"Event: {event['event']}")
    print(f"Data: {event['data']}")
    print("---")  

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

parse-sse-0.0.0.1.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

parse_sse-0.0.0.1-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file parse-sse-0.0.0.1.tar.gz.

File metadata

  • Download URL: parse-sse-0.0.0.1.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for parse-sse-0.0.0.1.tar.gz
Algorithm Hash digest
SHA256 37112b2b948857357bc009b97125ecf6e49674c716752899d0e6a3258cf113d9
MD5 320ebb00fc22d4435a3c15344908e083
BLAKE2b-256 88c9102bb297b1c78b2ef48c50cd9d96779a0da2667b2a2e0efde5296c7c06cf

See more details on using hashes here.

File details

Details for the file parse_sse-0.0.0.1-py3-none-any.whl.

File metadata

  • Download URL: parse_sse-0.0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for parse_sse-0.0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1dbe1b452c8bc7848294845a7a601681688927516f3407ff326d8afcf2ff9343
MD5 ac9525a24503213545b65e3c29d56183
BLAKE2b-256 474c704c7d0021e04a213e1b975b361686b94dcbd6819416369df2a7ec73f60c

See more details on using hashes here.

Supported by

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