SkillAgentSearch skills...

Aiosseclient

Asynchronous Server Side Events (SSE) client for Python 3

Install / Use

/learn @ebraminio/Aiosseclient
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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,

  • https://github.com/rtfol/aiohttp-sse-client
  • https://github.com/JelleZijlstra/aiohttp-sse-client2
View on GitHub
GitHub Stars28
CategoryDevelopment
Updated4mo ago
Forks13

Languages

Python

Security Score

87/100

Audited on Nov 17, 2025

No findings