Skip to main content

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)

Uploaded Source

Built Distribution

aiosseclient-0.0.1-py3-none-any.whl (4.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page