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,

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.8.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aiosseclient-0.1.8-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file aiosseclient-0.1.8.tar.gz.

File metadata

  • Download URL: aiosseclient-0.1.8.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for aiosseclient-0.1.8.tar.gz
Algorithm Hash digest
SHA256 7180d4c6e5d514f3e036bd7c658ef1b9acd6b296f97d2d1c237e9ed6795c36e4
MD5 2d1d5e7653128645746af2a58b8931ec
BLAKE2b-256 d21e3a2c6c294b38672a80b4346dbe099169220175378eedbb57d31f1f309041

See more details on using hashes here.

File details

Details for the file aiosseclient-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: aiosseclient-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for aiosseclient-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 6ad51c49f79dc974f78a1aaa57eca5f6db5f224d6614c17f3724b28afde37454
MD5 6fb61395ae40e1807dfeec22e8ecc1b1
BLAKE2b-256 bec54b355285f7a30437cb02609cc751ea8305bb04c3eaf5bcaaf399359ea5ec

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.8 This release

2 files

0.1.7

2 files

0.1.6

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

0.0.2

2 files

0.0.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page