skillfed

azure-communication-sms

Microsoft Azure Communication SMS Client Library for Python

azure-communication-sms v1.1.0 402.4K downloads/30d#6,920 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 Communication Services SMS functionality. It wraps the Azure REST API to let you send SMS messages from your application, either to individual recipients or in bulk to multiple phone numbers. The library handles authentication via connection strings or Azure Active Directory, manages the HTTP communication with Azure's backend, and returns structured responses indicating success or failure for each message.

You initialize a client with your Azure credentials, then call the send method with source and destination phone numbers, message text, and optional parameters like delivery reporting and custom tags. The library depends on azure-core for common Azure SDK patterns, msrest for HTTP handling, and typing-extensions for type hints. It's designed for applications that need to integrate SMS notifications, alerts, or two-factor authentication into their workflow.

Use it for:

  • Send SMS-based two-factor authentication codes during user login or account verification.
  • Deliver bulk notification messages to multiple customers about order status, appointments, or service alerts.
  • Trigger transactional SMS alerts for system events, outages, or critical monitoring thresholds.
  • Send SMS reminders for appointments, reservations, or scheduled events to end users.
  • Enable SMS-based customer support workflows where users can receive responses via text message.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Sends SMS messages through Azure Communication Services, supporting both single and bulk recipient messaging with optional delivery reporting and custom tagging.

Yes, if you are already using Azure Communication Services and need SMS capability in Python. The package is actively maintained, has no known vulnerabilities, supports current Python versions, and integrates cleanly into the Azure SDK ecosystem. Install only if you have an Azure subscription and a provisioned Communication Services resource; it is not useful as a standalone SMS library.

Install

azure-communication-sms on PyPI

pip

pip install azure-communication-sms

uv

uv add azure-communication-sms

poetry

poetry add azure-communication-sms

Installing azure-communication-sms

Before you install

Low install friction with a pure-Python wheel distribution. Maintained actively as part of the Azure SDK ecosystem with recent commits and stable production status.

License in practice

MIT License permits commercial and private use with minimal restrictions, making it suitable for most projects without licensing concerns.

Quickstart

pip install azure-communication-sms

from azure.communication.sms import SmsClient

connection_str = "endpoint=ENDPOINT;accessKey=KEY"
sms_client = SmsClient.from_connection_string(connection_str)
sms_responses = sms_client.send(from_="<from-phone-number>", to="<to-phone-number>", message="Hello")

Requires Python 3.8 or later and a deployed Azure Communication Services resource with a configured phone number.

Verify before relying

  • Whether delivery reporting incurs additional Azure charges beyond base SMS costs.
  • Rate limits or throttling behavior for bulk SMS operations.
  • Retry and timeout behavior for failed send attempts.

Package facts

License MIT License (permissive)
Python support supports the current Python release (>=3.8)
Install friction low — pure-Python wheel
Runtime dependencies 3 — azure-core, msrest, typing-extensions
Maintenance actively maintained — 680 days since the last release
Last repo commit
First released
Downloads 402,357/month — #6,920 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: azure_communication_sms-1.1.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 sms clientsend sms messages pythonazure communication servicesbulk sms sendersms delivery reportingazure phone messagingsms api python
azure-sdksms-messagingcloud-communications

More Internet packages