WebSockets support for HTTPX
Project description
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 uv to manage the development environment and production build, and just to manage command shortcuts. Ensure they are installed on your system.
Run unit tests
You can run all the tests with:
just test
Format the code
Execute the following command to apply linting and check typing:
just lint
License
This project is licensed under the terms of the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file httpx_ws-0.8.2.tar.gz.
File metadata
- Download URL: httpx_ws-0.8.2.tar.gz
- Upload date:
- Size: 105.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba0d4aa76e1c8a27bd5e88984ecdcdc28f7bf30b40cb0989a4c1438d07fa52c7
|
|
| MD5 |
ffc7d7446b915cb423509318aacefdd2
|
|
| BLAKE2b-256 |
4a326f7198f55d94063ea84487a31cdd3e149d2702dc0804fc5de06ed12ef2c2
|
File details
Details for the file httpx_ws-0.8.2-py3-none-any.whl.
File metadata
- Download URL: httpx_ws-0.8.2-py3-none-any.whl
- Upload date:
- Size: 15.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8898ddb84cbf98c562e8e796675bc68c215fa1d453d54a7fcd935aca8198cc8
|
|
| MD5 |
16170818848740e16035eb5f2a7d5778
|
|
| BLAKE2b-256 |
29cd2008972ddc4c2139b9813d8a097e53dcc74b2a16a85b4069294457954232
|