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

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

💻

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


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.4.tar.gz (19.1 kB view details)

Uploaded Source

Built Distribution

httpx_ws-0.2.4-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for httpx_ws-0.2.4.tar.gz
Algorithm Hash digest
SHA256 1f6e7010992e33cb0dcae8fac3816036663cbb40fb36b389c954fc4be9b9bd39
MD5 56e9fb529b6a6f13f844f7cb9a6f90ca
BLAKE2b-256 b400f430c47133db949fa4f64b9d890456f00d88c9a5b22fe882673109f727ed

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for httpx_ws-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 103c9f25757de7ad5a4303ed81ca7f14d9f9f1257bc0a5c529dd0a6531caf0a4
MD5 3c0f4ceb295c11eec545d2009bbaadff
BLAKE2b-256 a69a67fe68d144a8e81af53003e063ce70ea562a36bf7b1a80a51e5bd4b0613a

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