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 details)
Built Distribution
File details
Details for the file aiosseclient-0.1.0.tar.gz
.
File metadata
- Download URL: aiosseclient-0.1.0.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f06c5b99fa81ef7979352120730cfd3852d6dbc3de908dba3794fef461d1a14a |
|
MD5 | f5dd8675931daf68b76b9a559e31824b |
|
BLAKE2b-256 | 7f0b11d48f22a10ff1b31418de0731ae34d0f8f4dcf2d3986b5e1f981d00387d |
File details
Details for the file aiosseclient-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: aiosseclient-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bea6d6944b73a175d35fe5500b6c6f8c3b737b4ac9fd993339cf263e9daeb8f9 |
|
MD5 | e89461aa221ce0f9a7bec543a199766a |
|
BLAKE2b-256 | 735db414d15fa4c47d4d17e89301a285fccab2fefe2315cc0ad0ecb068985a03 |