frankie567 / httpx-ws

WebSocket support for HTTPX
https://frankie567.github.io/httpx-ws/
MIT License
110 stars 17 forks source link
httpx websockets

HTTPX WS

WebSockets support for HTTPX

build codecov All Contributors PyPI version Downloads

Subscribe

--- **Documentation**: https://frankie567.github.io/httpx-ws/ **Source Code**: https://github.com/frankie567/httpx-ws --- ## Installation ```bash pip install httpx-ws ``` ## Features * [X] Sync and async client * [X] Helper methods to send text, binary and JSON data * [X] Helper methods to receive text, binary and JSON data * [X] Automatic ping/pong answers * [X] HTTPX transport to test WebSockets defined in ASGI apps * [X] Automatic keepalive ping * [X] `asyncio` and [Trio](https://trio.readthedocs.io/) support through [AnyIO](https://anyio.readthedocs.io/) ## Contributors ✨ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
François Voron
François Voron

🚧 💻
Kousik Mitra
Kousik Mitra

💻
David Brochart
David Brochart

📦 💻
ysmu
ysmu

🐛
Sam Foreman
Sam Foreman

🐛
Marc-Antoine Parent
Marc-Antoine Parent

🐛 💻
Marcelo Trylesinski
Marcelo Trylesinski

🐛 🔬
MtkN1
MtkN1

🐛 🔬
Tom Christie
Tom Christie

🐛 🔬
David Montague
David Montague

🐛
Sean Wang
Sean Wang

💻
Alex Grönholm
Alex Grönholm

🐛 💻
Rodrigo de Oliveira Neto
Rodrigo de Oliveira Neto

🐛 💻
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome! ## Development ### Setup environment We use [Hatch](https://hatch.pypa.io/latest/install/) to manage the development environment and production build. Ensure it's installed on your system. ### Run unit tests You can run all the tests with: ```bash hatch run test ``` ### Format the code Execute the following command to apply linting and check typing: ```bash hatch run lint ``` ## License This project is licensed under the terms of the MIT license.