asyncwebsockets is an anyio-compatible websocket client library. Thus it works with curio, trio, or asyncio.
Installation
To install the latest stable version:
$ pip install asyncwebsockets
To install the latest development version:
$ pip install git+https://github.com/Fuyukai/asyncwebsockets.git#egg=asyncwebsockets
Basic Usage
import anyio
import asyncwebsockets
async def test():
async with asyncwebsockets.open_websocket("wss://echo.websocket.org") as ws:
await ws.send("test")
evt = await ws.next_event()
print(type(evt), getattr(evt, 'data', None))
anyio.run(test)
Metadata
Release files for asyncwebsockets 0.9.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| asyncwebsockets-0.9.4.tar.gz | 13.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| asyncwebsockets-0.9.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.1 kB
Release files / asyncwebsockets-0.9.4.tar.gz
| Download URL | asyncwebsockets-0.9.4.tar.gz |
|---|---|
| Size | 13.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
686d6bda94eecac2a45e11320ae8279fb2e5edafd37f6c0a1ac8cfa17db0f18a
|
|
BLAKE2b-256 checksum How to use checksums |
4a96a340487e005b9cde3af1a72769cc5cc612b7ce7e67f2549b4d0688198bc1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.8.2 requests/2.25.1 setuptools/63.2.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.10.5
|
Release files / asyncwebsockets-0.9.4-py3-none-any.whl
| Download URL | asyncwebsockets-0.9.4-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f1d82fbcbd016cd0811630f44b27bbe3b6e2369b157970517bebf945f6e6b2ea
|
|
BLAKE2b-256 checksum How to use checksums |
da9dab76dd06f03b09493a5046ef31fee5e20cf868b0a1b48a9f325628db32a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.8.2 requests/2.25.1 setuptools/63.2.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.10.5
|