Asynchronous Server Sent Event streams client.
Project description
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,
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
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 aiosseclient-0.1.8.tar.gz.
File metadata
- Download URL: aiosseclient-0.1.8.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7180d4c6e5d514f3e036bd7c658ef1b9acd6b296f97d2d1c237e9ed6795c36e4
|
|
| MD5 |
2d1d5e7653128645746af2a58b8931ec
|
|
| BLAKE2b-256 |
d21e3a2c6c294b38672a80b4346dbe099169220175378eedbb57d31f1f309041
|
File details
Details for the file aiosseclient-0.1.8-py3-none-any.whl.
File metadata
- Download URL: aiosseclient-0.1.8-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6ad51c49f79dc974f78a1aaa57eca5f6db5f224d6614c17f3724b28afde37454
|
|
| MD5 |
6fb61395ae40e1807dfeec22e8ecc1b1
|
|
| BLAKE2b-256 |
bec54b355285f7a30437cb02609cc751ea8305bb04c3eaf5bcaaf399359ea5ec
|