Skip to main content

WebSockets support for HTTPX

Project description

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

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
  • asyncio and Trio support through AnyIO

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

🐛 💻
Marcelo Trylesinski
Marcelo Trylesinski

🐛 🔬
MtkN1
MtkN1

🐛 🔬 💻
Tom Christie
Tom Christie

🐛 🔬
David Montague
David Montague

🐛
Sean Wang
Sean Wang

💻
Alex Grönholm
Alex Grönholm

🐛 💻
Rodrigo de Oliveira Neto
Rodrigo de Oliveira Neto

🐛 💻
Elaina
Elaina

💻
runsisi
runsisi

🐛 🔬
Luis Linares
Luis Linares

🐛

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

httpx_ws-0.8.2.tar.gz (105.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

httpx_ws-0.8.2-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

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

Hashes for httpx_ws-0.8.2.tar.gz
Algorithm Hash digest
SHA256 ba0d4aa76e1c8a27bd5e88984ecdcdc28f7bf30b40cb0989a4c1438d07fa52c7
MD5 ffc7d7446b915cb423509318aacefdd2
BLAKE2b-256 4a326f7198f55d94063ea84487a31cdd3e149d2702dc0804fc5de06ed12ef2c2

See more details on using hashes here.

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

Hashes for httpx_ws-0.8.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f8898ddb84cbf98c562e8e796675bc68c215fa1d453d54a7fcd935aca8198cc8
MD5 16170818848740e16035eb5f2a7d5778
BLAKE2b-256 29cd2008972ddc4c2139b9813d8a097e53dcc74b2a16a85b4069294457954232

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page