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

🐛 🔬

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

Uploaded Source

Built Distribution

httpx_ws-0.7.2-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for httpx_ws-0.7.2.tar.gz
Algorithm Hash digest
SHA256 93edea6c8fc313464fc287bff7d2ad20e6196b7754c76f946f73b4af79886d4e
MD5 19cda40442852067a69f694c45fd9af9
BLAKE2b-256 56bae310ccdb8f18a2b894bfacd085ef390cf6cc70bb10ff9f109d58d94f6b47

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for httpx_ws-0.7.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dd7bf9dbaa96dcd5cef1af3a7e1130cfac068bebecce25a74145022f5a8427a3
MD5 566644fbce63f770581e47955d735f38
BLAKE2b-256 033d2113a5c7af9a13663fa026882d0302ed4142960388536f885dacd6be7038

See more details on using hashes here.

Supported by

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