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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
37112b2b948857357bc009b97125ecf6e49674c716752899d0e6a3258cf113d9
|
|
| MD5 |
320ebb00fc22d4435a3c15344908e083
|
|
| BLAKE2b-256 |
88c9102bb297b1c78b2ef48c50cd9d96779a0da2667b2a2e0efde5296c7c06cf
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1dbe1b452c8bc7848294845a7a601681688927516f3407ff326d8afcf2ff9343
|
|
| MD5 |
ac9525a24503213545b65e3c29d56183
|
|
| BLAKE2b-256 |
474c704c7d0021e04a213e1b975b361686b94dcbd6819416369df2a7ec73f60c
|