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

⚠️ 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

💻

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 isort and black formatting:

hatch run 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.2.2.tar.gz (18.4 kB view details)

Uploaded Source

Built Distribution

httpx_ws-0.2.2-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file httpx_ws-0.2.2.tar.gz.

File metadata

  • Download URL: httpx_ws-0.2.2.tar.gz
  • Upload date:
  • Size: 18.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.23.1

File hashes

Hashes for httpx_ws-0.2.2.tar.gz
Algorithm Hash digest
SHA256 2ab9e18848ef915ad2cad33b44aa048e75e2bc6f45f648f51f42e79cb5f72415
MD5 17bfe834e9f4f9c6e1130447695daa2f
BLAKE2b-256 7ae441e745564b9bd9da835e8f648a28137ed01ec71dc4067292878b13dc44c3

See more details on using hashes here.

File details

Details for the file httpx_ws-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: httpx_ws-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.23.1

File hashes

Hashes for httpx_ws-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2ab82e394e0f4a6fccf22820ebf3990dd4c3dbbc73330bd2f37848f65ec3b5d4
MD5 827a2cb58612fd709dc53350d38059eb
BLAKE2b-256 fcd939370e6c1b73c59dae08485711dc48cd5ef0c3d323a4ae83da3cce10f9e4

See more details on using hashes here.

Supported by

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