Skip to content

frankie567/httpx-ws

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1e1c252 · Sep 27, 2023

History

91 Commits
Jun 27, 2023
Feb 15, 2023
Sep 27, 2023
Sep 27, 2023
Sep 7, 2023
Nov 22, 2022
Nov 22, 2022
Nov 22, 2022
Sep 7, 2023
Jun 27, 2023
Sep 7, 2023

Repository files navigation

HTTPX WS

WebSockets support for HTTPX

build codecov All Contributors PyPI version Downloads


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
François Voron

🚧 💻
Kousik Mitra
Kousik Mitra

💻
David Brochart
David Brochart

📦
ysmu
ysmu

🐛
Sam Foreman
Sam Foreman

🐛
Marc-Antoine Parent
Marc-Antoine Parent

🐛 💻

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.