SSE Client
A Server-Sent Event python client base on aiohttp, provides a simple interface to process Server-Sent Event.
Free software: Apache Software License 2.0
Documentation: https://aiohttp-sse-client.readthedocs.io.
Features
Full asyncio support
Easy to integrate with other aiohttp based project
Auto-reconnect for network issue
Support python 3.6 and above
Usage
from aiohttp_sse_client import client as sse_client
async with sse_client.EventSource(
'https://stream.wikimedia.org/v2/stream/recentchange'
) as event_source:
try:
async for event in event_source:
print(event)
except ConnectionError:
pass
Credits
This project was inspired by aiosseclient, sseclient, and sseclient-py.
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
0.2.1 (2021-02-27)
Allow sending request with different HTTP methods (by @paulefoe)
Migrate to GitHub Actions
0.2.0 (2020-10-20)
Breaking Changes
Drop Python 3.5 support
Add Python 3.8 support
Non functional changes
Clarify the license (Apache Software License 2.0), thanks @fabaff
Update dependency packages
0.1.7 (2020-03-30)
Allow passing kwargs without specifying headers
0.1.6 (2019-08-06)
Fix Unicode NULL handling in event id field
0.1.5 (2019-08-06)
Fix last id reconnection (by @Ronserruya)
0.1.4 (2018-10-04)
Switch to Apache Software License 2.0
0.1.3 (2018-10-03)
Change the error handling, better fit the live specification.
0.1.2 (2018-10-03)
Implement auto-reconnect feature.
0.1.1 (2018-10-02)
First release on PyPI.
Metadata
Release files for aiohttp-sse-client 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aiohttp-sse-client-0.2.1.tar.gz | 13.7 kB | Without provenance | Details for aiohttp-sse-client-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aiohttp_sse_client-0.2.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for aiohttp_sse_client-0.2.1-py2.py3-none-any.whl |
Total release size: 20.7 kB
Release files / aiohttp-sse-client-0.2.1.tar.gz
| Download URL | aiohttp-sse-client-0.2.1.tar.gz |
|---|---|
| Size | 13.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5004e29271624af586158dc7166cb0687a7a5997aab5b808f4b53400e1b72e3b
|
|
BLAKE2b-256 checksum How to use checksums |
71c34825c5f37909a70c8018924b3d521847dd7acf1fce7e1054574bafed2271
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.2
|
Release files / aiohttp_sse_client-0.2.1-py2.py3-none-any.whl
| Download URL | aiohttp_sse_client-0.2.1-py2.py3-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
42c81ee9213e9fc8bc412b063bac3a813e02e75250c4c8049222234d41c9b024
|
|
BLAKE2b-256 checksum How to use checksums |
25c9ad514e70a549db22e118f0366c0bb38c5a90cb407978cb6c3d1482760889
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.2
|
Security for aiohttp-sse-client 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.