WebSockets support for HTTPX
Project Links
Meta
Author: François Voron
Requires Python: >=3.10
Classifiers
Development Status
- 4 - Beta
Framework
- AsyncIO
Intended Audience
- Developers
License
- OSI Approved :: MIT License
Programming Language
- Python :: 3 :: Only
- Python :: 3.10
- Python :: 3.11
- Python :: 3.12
- Python :: 3.13
Topic
- Internet :: WWW/HTTP :: Session
HTTPX WS
WebSockets support for HTTPX
Documentation: https://frankie567.github.io/httpx-ws/
Source Code: https://github.com/frankie567/httpx-ws
Installation
pip install httpx-ws
Features
- Sync and async client
- Helper methods to send text, binary and JSON data
- Helper methods to receive text, binary and JSON data
- Automatic ping/pong answers
- HTTPX transport to test WebSockets defined in ASGI apps
- Automatic keepalive ping
-
asyncioand Trio support through AnyIO
Contributors ✨
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!
Development
Setup environment
We use Hatch 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:
hatch run test
Format the code
Execute the following command to apply linting and check typing:
hatch run lint
License
This project is licensed under the terms of the MIT license.
0.8.0
Sep 20, 2025
0.7.2
Mar 28, 2025
0.7.1
Jan 04, 2025
0.7.0
Dec 07, 2024
0.6.2
Oct 07, 2024
0.6.1
Oct 05, 2024
0.6.0
Apr 05, 2024
0.5.2
Mar 19, 2024
0.5.1
Feb 22, 2024
0.5.0
Feb 09, 2024
0.4.3
Dec 04, 2023
0.4.2
Sep 27, 2023
0.4.1
Jul 06, 2023
0.4.0
Jun 27, 2023
0.3.1
Apr 15, 2023
0.3.0
Feb 15, 2023
0.2.6
Jan 03, 2023
0.2.5
Jan 02, 2023
0.2.4
Dec 27, 2022
0.2.3
Nov 29, 2022
0.2.2
Nov 28, 2022
0.2.1
Nov 28, 2022
0.2.0
Nov 27, 2022
0.1.1
Nov 25, 2022
0.1.0
Nov 24, 2022