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.1.0.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for aiosseclient-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bea6d6944b73a175d35fe5500b6c6f8c3b737b4ac9fd993339cf263e9daeb8f9 |
|
MD5 | e89461aa221ce0f9a7bec543a199766a |
|
BLAKE2b-256 | 735db414d15fa4c47d4d17e89301a285fccab2fefe2315cc0ad0ecb068985a03 |