Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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.5.2
Filename, size File type Python version Upload date Hashes
Filename, size asyncwebsockets-0.5.2.tar.gz (14.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page