skillfed

azure-communication-chat

Microsoft Azure Communication Chat Client Library for Python

azure-communication-chat v1.3.0 134.1K downloads/30d#11,488 on PyPI5,588
Permissive license MIT License Active released

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

uv

uv add azure-communication-chat

poetry

poetry add azure-communication-chat

Installing 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

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 chat sdk pythoncloud messaging service clientchat thread managementazure communication servicesreal-time chat apigroup messaging platformchat participant management
azure-sdkreal-time-messagingcloud-service-client

More Internet packages

botocore

Botocore provides low-level, data-driven access…

permissive · top 100 on PyPI

aiobotocore

Provides an async client for AWS services using…

permissive · top 100 on PyPI

pydantic

Pydantic validates Python data structures…

permissive · top 100 on PyPI

filelock

Provides a platform-independent file locking…

permissive · top 100 on PyPI

fastapi

FastAPI is a Python web framework for building…

permissive · top 100 on PyPI

googleapis-common-protos

Provides common Protocol Buffer message…

permissive · top 100 on PyPI

azure-communication-identity

Creates and manages user identities and access…

permissive · top 15,000 on PyPI

azure-communication-rooms

Manages Azure Communication Services rooms for…

permissive · top 15,000 on PyPI

azure-communication-sms

Sends SMS messages through Azure Communication…

permissive · top 15,000 on PyPI

azure-communication-callautomation

Provides a Python SDK to build server-based…

permissive · top 15,000 on PyPI

azure-servicebus

Azure Service Bus client library for Python…

unclear · top 1,000 on PyPI

azure-communication-email

Sends emails via Azure Communication Services,…

permissive · top 5,000 on PyPI

azure-messaging-webpubsubservice

Manages WebSocket connections and real-time…

permissive · top 15,000 on PyPI

azure-communication-phonenumbers

Manages Azure Communication Services phone…

permissive · top 15,000 on PyPI

azure-mgmt-powerbiembedded

Manages Power BI Embedded resources in…

permissive · top 5,000 on PyPI

stream-chat

Python SDK for server-side integration with…

unclear · top 15,000 on PyPI