azure-communication-chat
Microsoft Azure Communication Chat Client Library for Python
What it is and what it does
This is the official Python client library for Azure Communication Services Chat, a managed cloud service for building real-time chat applications. It provides abstractions for creating chat threads, sending and receiving messages, managing thread participants, and handling typing notifications and read receipts. The library handles authentication via Azure tokens and manages HTTP communication with Azure's backend services.
You use it by instantiating a ChatClient with an Azure endpoint and credentials, then creating or accessing chat threads through ChatThreadClient instances. The library supports one-to-one and group conversations, with features like message history sharing, participant management, and typing indicators. It depends on azure-core for common Azure SDK patterns and isodate for timestamp handling.
Use it for:
- Build a web or mobile application with integrated real-time chat between users
- Create a customer support chat interface backed by Azure infrastructure
- Implement group messaging in a collaborative application with participant management
- Add typing indicators and read receipts to a messaging feature
- Manage chat thread lifecycle for a multi-tenant SaaS platform
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Python SDK for Azure Communication Services Chat, enabling creation and management of chat threads, message operations, and participant management through a cloud-hosted chat service.
Yes. This is a production-stable, actively maintained official SDK from Microsoft with no known vulnerabilities, low install friction, and permissive licensing. Install it if you are building on Azure Communication Services and need Python chat functionality; it is the standard choice for that use case.
Install
azure-communication-chat on PyPI
pip
pip install azure-communication-chatuv
uv add azure-communication-chatpoetry
poetry add azure-communication-chatInstalling azure-communication-chat
Before you install
Low install friction with a pure-Python wheel. Actively maintained with recent commits and production-stable status.
License in practice
MIT License permits free use, modification, and distribution with minimal restrictions, suitable for both open-source and commercial projects.
Quickstart
pip install azure-communication-chat
from azure.communication.chat import ChatClient, CommunicationTokenCredential
endpoint = "https://<RESOURCE_NAME>.communicationservices.azure.com"
chat_client = ChatClient(endpoint, CommunicationTokenCredential(token))
create_chat_thread_result = chat_client.create_chat_thread(topic)
chat_thread_client = chat_client.get_chat_thread_client(create_chat_thread_result.chat_thread.id)
Requires Python 3.8 or later and a deployed Azure Communication Services resource with a valid access token.
Verify before relying
- Performance characteristics and rate limits for concurrent chat operations
- Real-time notification delivery guarantees and latency expectations
- Whether typing notifications and read receipts are delivered in near real-time as described
Package facts
| License | MIT License (permissive) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — isodate, azure-core, typing-extensions |
| Maintenance | actively maintained — 855 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 134,063/month — #11,488 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: azure_communication_chat-1.3.0-py3-none-any.whl
Keywords: azure, azure sdk
Tags
More Internet packages
Botocore provides low-level, data-driven access…
permissive · top 100 on PyPI
aiobotocoreProvides an async client for AWS services using…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
filelockProvides a platform-independent file locking…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
googleapis-common-protosProvides common Protocol Buffer message…
permissive · top 100 on PyPI
azure-communication-identityCreates and manages user identities and access…
permissive · top 15,000 on PyPI
azure-communication-roomsManages Azure Communication Services rooms for…
permissive · top 15,000 on PyPI
azure-communication-smsSends SMS messages through Azure Communication…
permissive · top 15,000 on PyPI
azure-communication-callautomationProvides a Python SDK to build server-based…
permissive · top 15,000 on PyPI
azure-servicebusAzure Service Bus client library for Python…
unclear · top 1,000 on PyPI
azure-communication-emailSends emails via Azure Communication Services,…
permissive · top 5,000 on PyPI
azure-messaging-webpubsubserviceManages WebSocket connections and real-time…
permissive · top 15,000 on PyPI
azure-communication-phonenumbersManages Azure Communication Services phone…
permissive · top 15,000 on PyPI
azure-mgmt-powerbiembeddedManages Power BI Embedded resources in…
permissive · top 5,000 on PyPI
stream-chatPython SDK for server-side integration with…
unclear · top 15,000 on PyPI