--- id: azure-messaging-webpubsubservice version: "1.3.0" license: MIT License license_treatment: permissive maintenance: active --- # azure-messaging-webpubsubservice — Microsoft Azure WebPubSub Service Client Library for Python License: permissive · Maintenance: active · Downloads: 461.6K/mo ## What it is and what it does This package is a Python client library for Azure Web PubSub Service, a managed Azure service that handles real-time, bidirectional communication between servers and clients over WebSocket. It abstracts the complexity of managing WebSocket connections, allowing you to focus on application logic rather than connection lifecycle and message routing. You use it server-side to send messages to all connected clients (broadcast), to specific groups, to individual users, or to particular connections. It also handles connection management tasks like organizing connections into groups, assigning users to connections, and revoking permissions. The library depends on azure-core for HTTP transport and authentication, isodate for timestamp handling, pyjwt for token operations, and typing-extensions for type hints. Use it for: - Build real-time chat applications where messages must be delivered instantly to multiple connected clients. - Send live notifications or alerts from a server to specific user groups or all connected clients. - Implement collaborative features (shared whiteboards, live editing) requiring bidirectional, low-latency messaging. - Manage dynamic user presence and connection state across multiple devices or browser tabs. - Replace polling-based updates with push-based messaging for dashboards and monitoring applications. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Manages WebSocket connections and real-time messaging for Azure Web PubSub service, enabling server-side broadcast, group, and user-targeted message delivery. Yes. The package is production-stable (Development Status 5), actively maintained, has low install friction, carries no known vulnerabilities, and is backed by Microsoft's Azure SDK ecosystem. Install it if you are building a Python server that needs to manage real-time WebSocket communication with Azure Web PubSub; it is the official, supported way to do so. ## Install pip install azure-messaging-webpubsubservice uv add azure-messaging-webpubsubservice poetry add azure-messaging-webpubsubservice ## Installing azure-messaging-webpubsubservice Before you install: Low install friction with a pure-wheel distribution. Actively maintained with recent releases; last commit 2026-08-14 and latest release 2025-07-08. Depends on stable Azure SDK components (azure-core, isodate, pyjwt, typing-extensions). License in practice: MIT License permits commercial and private use with minimal restrictions—you may use, modify, and distribute this package freely provided you include the license notice. Quickstart: from azure.messaging.webpubsubservice import WebPubSubServiceClient service = WebPubSubServiceClient.from_connection_string( connection_string='', hub='hub' ) service.send_to_all(message={'from': 'user1', 'data': 'Hello world'}) Requires an active Azure Web PubSub service instance and a valid connection string or endpoint with credentials. Verify before relying: - Whether the package supports Python 3.6 as documented in the disclaimer, given classifiers list only 3.8–3.12. - Performance characteristics and throughput limits for high-volume message scenarios. - Whether connection state recovery and reconnection logic are built-in or require application-level handling. ## Package facts - License: MIT License (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 461.6K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags azure web pubsub service client, real-time messaging python, websocket connection management, publish-subscribe azure, server-side broadcast messages, azure hub groups users, real-time web applications, azure-sdk, real-time-messaging, websocket [View on SkillFed](https://skillfed.io/packages/azure-messaging-webpubsubservice) · [View on PyPI](https://pypi.org/project/azure-messaging-webpubsubservice/)