azure-messaging-webpubsubservice
Microsoft Azure WebPubSub Service Client Library for Python
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 on this page — 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
azure-messaging-webpubsubservice on PyPI
pip
pip install azure-messaging-webpubsubserviceuv
uv add azure-messaging-webpubsubservicepoetry
poetry add azure-messaging-webpubsubserviceInstalling 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='<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 the current Python release (>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — isodate, azure-core, typing-extensions, pyjwt |
| Maintenance | actively maintained — 402 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 461,634/month — #6,530 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: azure_messaging_webpubsubservice-1.3.0-py3-none-any.whl
Keywords: azure, azure sdk
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
azure-eventhubPublishes and consumes events from Azure Event…
unclear · top 5,000 on PyPI
broadcasterBroadcaster provides a simple async broadcast…
permissive · top 15,000 on PyPI
azure-mgmt-iothubprovisioningservicesManages Azure IoT Hub Provisioning Services…
permissive · top 5,000 on PyPI
lcmLCM provides publish/subscribe message passing…
unclear · top 15,000 on PyPI
azure-servicebusAzure Service Bus client library for Python…
unclear · top 1,000 on PyPI
PypubsubProvides a publish-subscribe messaging system…
permissive · top 15,000 on PyPI
openfire-restapiA Python client library for interacting with…
copyleft · top 15,000 on PyPI
azure-eventgridPublishes and consumes events through Azure…
permissive · top 5,000 on PyPI
azure-storage-queueClient library for interacting with Azure Queue…
permissive · top 1,000 on PyPI
azure-mgmt-notificationhubsManages Azure Notification Hubs…
permissive · top 5,000 on PyPI