WebSockets support for HTTPX
Documentation: https://frankie567.github.io/httpx-ws/
Source Code: https://github.com/frankie567/httpx-ws
pip install httpx-ws- 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
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!
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 just install to install the development dependencies and pre-commit hooks.
You can run all the tests with:
just testExecute the following command to apply linting and check typing:
just lintUse just docs-serve to preview the Zensical site and just docs-build to build it into site/.
- Commit the release entries under
Unreleasedin CHANGELOG.md. From a clean release branch with Git signing configured, runjust version patch,just version minor, orjust version major. The recipe updates the version, changelog, and lockfile and creates a signed commit. - Preview the release body with
just release-notes <version>, then push the branch and merge the release PR intomain. - With the GitHub CLI authenticated, run
just release <PR number>. This signs and pushes a tag for the exact commit that landed, even ifmainhas advanced. After the checks pass, CI publishes to PyPI and then publishes the GitHub release.
The PyPI Trusted Publisher must match build.yml and the GitHub release environment.
This project is licensed under the terms of the MIT license.