Skip to main content

A websocket library

Project description

asyncwebsockets is an anyio-compatible websocket client library. Thus it works with curio, trio, or asyncio.


To install the latest stable version:

$ pip install asyncwebsockets

To install the latest development version:

$ pip install git+

Basic Usage

import anyio
import asyncwebsockets

async def test():
    async with asyncwebsockets.open_websocket("wss://") as ws:
        await ws.send("test")
        evt = await ws.next_event()
        print(type(evt), getattr(evt, 'data', None))

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for asyncwebsockets, version 0.7.1
Filename, size File type Python version Upload date Hashes
Filename, size asyncwebsockets-0.7.1.tar.gz (13.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page