Asynchronous Server Side Events (SSE) Client
Similar to sseclient and sseclient-py, a tiny package for supporting Server Side Events (SSE) with py3.9 asyncio and aiohttp.
Install it with this: pip3 install aiosseclient
https://pypi.org/project/aiosseclient/
Sample code (read more):
import asyncio
import aiohttp
from aiosseclient import aiosseclient
async def main():
async for event in aiosseclient('https://stream.wikimedia.org/v2/stream/recentchange'):
print(event)
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
Alternative libraries
There are different libraries, apparently inspired from this library initially, that right now are handling session close better using a different API,
Metadata
Release files for aiosseclient 0.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aiosseclient-0.1.8.tar.gz | 4.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aiosseclient-0.1.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.8 kB
Release files / aiosseclient-0.1.8.tar.gz
| Download URL | aiosseclient-0.1.8.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7180d4c6e5d514f3e036bd7c658ef1b9acd6b296f97d2d1c237e9ed6795c36e4
|
|
BLAKE2b-256 checksum How to use checksums |
d21e3a2c6c294b38672a80b4346dbe099169220175378eedbb57d31f1f309041
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.21
|
Release files / aiosseclient-0.1.8-py3-none-any.whl
| Download URL | aiosseclient-0.1.8-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6ad51c49f79dc974f78a1aaa57eca5f6db5f224d6614c17f3724b28afde37454
|
|
BLAKE2b-256 checksum How to use checksums |
bec54b355285f7a30437cb02609cc751ea8305bb04c3eaf5bcaaf399359ea5ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.21
|