{"categories":[{"label":"Session","url":"https://skillfed.io/packages/category/internet-www-http-session"}],"enrichment":{"capability":"Adds WebSocket support to HTTPX, enabling sync and async WebSocket client connections with helper methods for sending and receiving text, binary, and JSON data.","skillfed_tags":["websocket-client","async-http"],"use_cases":["Building real-time chat or notification clients that communicate over WebSockets while using HTTPX for initial authentication or REST calls.","Testing ASGI-based WebSocket endpoints in unit tests using the HTTPX transport without spinning up a live server.","Creating async applications that need to maintain long-lived WebSocket connections with automatic keepalive and ping/pong handling.","Sending and receiving structured JSON data over WebSocket connections with minimal boilerplate.","Migrating existing HTTPX-based clients to support bidirectional communication without switching HTTP libraries."],"what_it_does":"httpx-ws extends HTTPX with WebSocket protocol support, allowing developers to establish and manage WebSocket connections using the same client interface they use for HTTP requests. It provides both synchronous and asynchronous APIs, with convenience methods for sending and receiving text, binary, or JSON payloads. The package handles protocol-level details such as automatic ping/pong responses and optional keepalive pings, and includes an HTTPX transport for testing WebSocket endpoints defined in ASGI applications.\n\nThe package builds on httpx, httpcore, anyio, and wsproto, supporting Python 3.10 through 3.14 and both asyncio and Trio async backends through anyio. It is actively maintained and widely used, though still in Beta status, making it suitable for production use cases where WebSocket support is needed alongside HTTP in a unified client.","worth_installing":"Yes. httpx-ws is actively maintained, has low install friction, carries no known vulnerabilities, and is widely downloaded. It is the natural choice if you already use HTTPX and need WebSocket support. The Beta status reflects maturity rather than instability\u2014it is suitable for production use."},"id":"httpx-ws","links":{"html":"https://skillfed.io/packages/httpx-ws","md":"https://skillfed.io/packages/httpx-ws.md","pypi":"https://pypi.org/project/httpx-ws/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-03-28","license_spdx":null,"license_treatment":"permissive","name":"httpx-ws","python_support":"supports_current","summary":"WebSockets support for HTTPX"},"popularity":{"monthly_downloads":11327645,"position":1398,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.9.0"}
