Metadata-Version: 2.4 Name: httpx-ws Version: 0.9.0 Summary: WebSockets support for HTTPX Project-URL: Documentation, https://frankie567.github.io/httpx-ws/ Project-URL: Source, https://github.com/frankie567/httpx-ws Author-email: Franรงois Voron License-File: LICENSE Classifier: Development Status :: 4 - Beta Classifier: Framework :: AsyncIO Classifier: Intended Audience :: Developers Classifier: License :: OSI Approved :: MIT License Classifier: Programming Language :: Python :: 3 :: Only Classifier: Programming Language :: Python :: 3.10 Classifier: Programming Language :: Python :: 3.11 Classifier: Programming Language :: Python :: 3.12 Classifier: Programming Language :: Python :: 3.13 Classifier: Programming Language :: Python :: 3.14 Classifier: Topic :: Internet :: WWW/HTTP :: Session Requires-Python: >=3.10 Requires-Dist: anyio>=4 Requires-Dist: httpcore>=1.0.4 Requires-Dist: httpx>=0.23.1 Requires-Dist: wsproto Description-Content-Type: text/markdown # HTTPX WS

WebSockets support for HTTPX

[![build](https://github.com/frankie567/httpx-ws/workflows/Build/badge.svg)](https://github.com/frankie567/httpx-ws/actions) [![codecov](https://codecov.io/gh/frankie567/httpx-ws/branch/main/graph/badge.svg?token=fL49kIvrj6)](https://codecov.io/gh/frankie567/httpx-ws) [![All Contributors](https://img.shields.io/badge/all_contributors-2-orange.svg?style=flat-square)](#contributors) [![PyPI version](https://badge.fury.io/py/httpx-ws.svg)](https://badge.fury.io/py/httpx-ws) [![Downloads](https://pepy.tech/badge/httpx-ws)](https://pepy.tech/project/httpx-ws) --- **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

๐Ÿ› ๐Ÿ’ป
Elaina
Elaina

๐Ÿ’ป
runsisi
runsisi

๐Ÿ› ๐Ÿ”ฌ
Luis Linares
Luis Linares

๐Ÿ›
Graeme Holliday
Graeme Holliday

๐Ÿ› ๐Ÿ’ป
Ilia Ablamonov
Ilia Ablamonov

๐Ÿ›
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome! ## Development ### Setup environment We use [uv](https://docs.astral.sh/uv/) to manage the development environment and production build, and [just](https://github.com/casey/just) to manage command shortcuts. Ensure they are installed on your system. ### Run unit tests You can run all the tests with: ```bash just test ``` ### Format the code Execute the following command to apply linting and check typing: ```bash just lint ``` ## License This project is licensed under the terms of the MIT license.