Asynchronous Server Sent Event strems 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.1.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for aiosseclient-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0ffa29d242cc4ce1a9f91a443f4a3e596a522e0de90a6ffd5c5077d28ed8e21 |
|
MD5 | a66b315848bfb8d5dff995f96daa76d0 |
|
BLAKE2b-256 | c8ff39eb0b6be76f2eb40925a1169ec9c9a83e15840c3017dc4ab81b86339d4d |