Skip to main content

Asynchronous Server Side Events (SSE) Client

Similar to sseclient and sseclient-py, a tiny package for supporting Server Side Events (SSE) with py3.9 asyncio and aiohttp.

Install it with this: pip3 install aiosseclient

https://pypi.org/project/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())

Alternative libraries

There are different libraries, apparently inspired from this library initially, that right now are handling session close better using a different API,

Metadata

Release files for aiosseclient 0.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aiosseclient 0.1.8
File Size Uploaded
aiosseclient-0.1.8.tar.gz 4.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for aiosseclient 0.1.8
File Interpreter ABI Platform
aiosseclient-0.1.8-py3-none-any.whl Python 3 none any Details

Total release size: 9.8 kB

Release files / aiosseclient-0.1.8.tar.gz

Download URL aiosseclient-0.1.8.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
7180d4c6e5d514f3e036bd7c658ef1b9acd6b296f97d2d1c237e9ed6795c36e4
BLAKE2b-256 checksum
How to use checksums
d21e3a2c6c294b38672a80b4346dbe099169220175378eedbb57d31f1f309041
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.21

Release files / aiosseclient-0.1.8-py3-none-any.whl

Download URL aiosseclient-0.1.8-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6ad51c49f79dc974f78a1aaa57eca5f6db5f224d6614c17f3724b28afde37454
BLAKE2b-256 checksum
How to use checksums
bec54b355285f7a30437cb02609cc751ea8305bb04c3eaf5bcaaf399359ea5ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.21

Release history Release notifications | RSS feed

This release

0.1.8 This release

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page