skillfed

azure-messaging-webpubsubservice

Microsoft Azure WebPubSub Service Client Library for Python

azure-messaging-webpubsubservice v1.3.0 461.6K downloads/30d#6,530 on PyPI5,588
Permissive license MIT License Active released

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-webpubsubservice

uv

uv add azure-messaging-webpubsubservice

poetry

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='<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

Development Status :: 5 - Production/StableLicense :: OSI Approved :: MIT LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Tags

azure web pubsub service clientreal-time messaging pythonwebsocket connection managementpublish-subscribe azureserver-side broadcast messagesazure hub groups usersreal-time web applications
azure-sdkreal-time-messagingwebsocket

More WWW/HTTP packages