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
Warning
This is a very young project. Expect bugs 🐛
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
Contributors ✨
Thanks goes to these wonderful people (emoji key):
François Voron 🚧 💻 |
Kousik Mitra 💻 |
David Brochart 📦 |
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.
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
File details
Details for the file httpx_ws-0.3.0.tar.gz
.
File metadata
- Download URL: httpx_ws-0.3.0.tar.gz
- Upload date:
- Size: 19.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.23.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 694cf6d52622167cfc611c854312039dad03e470abbaf2efcfdbb08a3c29f1eb |
|
MD5 | 4dec9755bfe8bbb4f7fb649245efa916 |
|
BLAKE2b-256 | 535b6d86eec3bdf7612918d9b2a555286451728b798ee95adff1912dd6de4a63 |
File details
Details for the file httpx_ws-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: httpx_ws-0.3.0-py3-none-any.whl
- Upload date:
- Size: 12.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.23.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68c53208076c5414ff7eadbd559ec4a10f1b399865220bb4bbdbc06eb9444b0d |
|
MD5 | 8998801a5f08025e1993d85ea2b2c352 |
|
BLAKE2b-256 | 82928d17f95ce35ac059742861c9f91fbd2ca5afda8bc94188e397e3fa512cb8 |