All Projects → Fuyukai → asyncwebsockets

Fuyukai / asyncwebsockets

Licence: MIT license
Asynchronous client websockets

Programming Languages

python
139335 projects - #7 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to asyncwebsockets

asgi-babel
Adds internationalization (i18n) support to ASGI applications (Asyncio/Trio)
Stars: ✭ 21 (+16.67%)
Mutual labels:  trio
sphinxcontrib-trio
Make Sphinx better at documenting Python functions and methods
Stars: ✭ 26 (+44.44%)
Mutual labels:  trio
asyncstdlib
the missing toolbox for an async world
Stars: ✭ 145 (+705.56%)
Mutual labels:  trio
Dnspython
a powerful DNS toolkit for python
Stars: ✭ 1,838 (+10111.11%)
Mutual labels:  trio
Httpx
A next generation HTTP client for Python. 🦋
Stars: ✭ 8,052 (+44633.33%)
Mutual labels:  trio
Trio
Trio – a friendly Python library for async concurrency and I/O
Stars: ✭ 4,404 (+24366.67%)
Mutual labels:  trio
Orisa
A Discord bot to help keep track of members' BattleTags and Overwatch SR
Stars: ✭ 12 (-33.33%)
Mutual labels:  trio
asyncer
Asyncer, async and await, focused on developer experience.
Stars: ✭ 572 (+3077.78%)
Mutual labels:  trio
hypercorn-fastapi-docker
Docker image with Hypercorn for FastAPI apps in Python 3.7, 3.8, 3.9. Ready for HTTP2 and HTTPS
Stars: ✭ 18 (+0%)
Mutual labels:  trio
trimeter
(not ready yet) A simple but powerful job scheduler for Trio programs
Stars: ✭ 48 (+166.67%)
Mutual labels:  trio
fastapi-azure-auth
Easy and secure implementation of Azure AD for your FastAPI APIs 🔒 B2C, single- and multi-tenant support.
Stars: ✭ 174 (+866.67%)
Mutual labels:  trio
python-socks
Core proxy client (SOCKS4, SOCKS5, HTTP) functionality for Python
Stars: ✭ 40 (+122.22%)
Mutual labels:  trio
sniffio
Sniff out which async library your code is running under
Stars: ✭ 75 (+316.67%)
Mutual labels:  trio

asyncwebsockets

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)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].