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.5 asyncio and aiohttp.
Install it with this: pip3 install 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())
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
aiosseclient-0.0.2.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for aiosseclient-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c18350c26e049753d9205f5a01ad4bbf32c62009db3a0275cd1d245a07d2494 |
|
MD5 | fae3d96909e8312057501bad21df69ad |
|
BLAKE2b-256 | 6055ed99479a626180d012944193bf4106a51a07441f0a8f2cbb5783a4390f52 |