azure-communication-phonenumbers
Microsoft Azure Communication Phone Numbers Client Library for Python
Decision gist · record as of 2026-08-14
Yes, if you are building on Azure Communication Services and need programmatic phone number management. The package is production-stable, actively maintained, has low install friction, and carries no known vulnerabilities. Install it only if you have an Azure subscription and a deployed Communication Services resource; without those prerequisites, the package cannot be used.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires an active Azure subscription and a deployed Azure Communication Services resource with endpoint and credentials configured.
- Low install friction with three lightweight runtime dependencies.
- Active maintenance with recent commits and production-stable status; requires Python 3.9 or later.
License · maintenance · safety
MIT License (permissive) — MIT License permits commercial and private use with minimal restrictions; suitable for most projects without licensing concerns.
last release 2025-08-28 (351 days) · last repo commit 2026-08-14 · 5,588 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 168,718 downloads/mo, #10,438 on PyPI
Alternatives
Verify before relying
pip install azure-communication-phonenumbers
from azure.communication.phonenumbers import PhoneNumbersClient
from azure.identity import DefaultAzureCredential
phone_numbers_client = PhoneNumbersClient(
endpoint="https://<RESOURCE_NAME>.communication.azure.com",
credential=DefaultAzureCredential()
)
purchased = phone_numbers_client.list_purchased_phone_numbers()- Whether browse and reservation operations are truly asynchronous or if async/await support is required in practice.
- Specific rate limits or quota constraints for phone number search and purchase operations.
- Whether SIP routing configuration persists across client reconnections or requires re-initialization.
What it is and what it does
This package is the Python client library for Azure Communication Services' phone number management APIs. It provides two main clients: PhoneNumbersClient for acquiring and managing phone numbers (geographic, toll-free, and mobile types), and SipRoutingClient for configuring direct routing infrastructure. The package handles the full lifecycle of phone numbers—searching available numbers, reserving them temporarily, purchasing for your Azure resource, and releasing them when no longer needed. It also manages SIP trunk configuration and voice routing rules for connecting your existing telephony infrastructure to Azure.
The package depends on azure-core for authentication and HTTP transport, isodate for date/time handling, and typing-extensions for type hints. It requires Python 3.9 or later and integrates with Azure Identity for credential management, supporting both Azure Active Directory and connection-string authentication patterns.
Use it for
- Search and purchase phone numbers in specific countries and regions for your communication application.
- Retrieve details about already-purchased phone numbers assigned to your Azure resource.
- Set up SIP trunks and routing rules to connect your on-premises telephony system to Azure Communication Services.
- Browse available phone numbers by country and type before committing to a purchase via the reservation API.
- Release phone numbers that are no longer needed to free up capacity and reduce costs.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are building on Azure Communication Services and need programmatic phone number management.
The package is production-stable, actively maintained, has low install friction, and carries no known vulnerabilities. Install it only if you have an Azure subscription and a deployed Communication Services resource; without those prerequisites, the package cannot be used.
Install
azure-communication-phonenumbers on PyPI
Before you install
Low install friction with three lightweight runtime dependencies. Active maintenance with recent commits and production-stable status; requires Python 3.9 or later.
Requires an active Azure subscription and a deployed Azure Communication Services resource with endpoint and credentials configured.
License in practice
MIT License permits commercial and private use with minimal restrictions; suitable for most projects without licensing concerns.
Quickstart
pip install azure-communication-phonenumbers
from azure.communication.phonenumbers import PhoneNumbersClient
from azure.identity import DefaultAzureCredential
phone_numbers_client = PhoneNumbersClient(
endpoint="https://<RESOURCE_NAME>.communication.azure.com",
credential=DefaultAzureCredential()
)
purchased = phone_numbers_client.list_purchased_phone_numbers()
Verify before relying
- Whether browse and reservation operations are truly asynchronous or if async/await support is required in practice.
- Specific rate limits or quota constraints for phone number search and purchase operations.
- Whether SIP routing configuration persists across client reconnections or requires re-initialization.
Package facts
| License | MIT License permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagesisodateazure-coretyping-extensions |
| Maintenance | Actively maintained 351 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 168,718 / month, #10,438 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | 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.9 |
Evidence: azure_communication_phonenumbers-1.4.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “azure phone numbers management”
- azure-communication-phonenumbersManages Azure Communication Services phone numbers, including…
- vonage-numbersProvides Python bindings to Vonage's Numbers API for managing,…
- azure-communication-smsSends SMS messages through Azure Communication Services, supporting…
Give your agent the search over MCP, or paste the wish link into any chat.
More Internet packages
Botocore provides low-level, data-driven access to Amazon Web Services APIs, serving as the foundation for the AWS CLI and boto3 libraries.
Install it if you need programmatic access to AWS services.
Provides an async client for AWS services using botocore and aiohttp, allowing you to call AWS APIs asynchronously within asyncio-based applications.
Install it if you need to call AWS services from async Python code; it is the standard way to do so.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides a platform-independent file locking mechanism to coordinate access to files across processes and threads.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides common Protocol Buffer message definitions used across Google Cloud APIs, enabling Python clients to interact with Google services.
See also azure-communication-identity · azure-communication-sms · vonage-numbers · azure-mgmt-trafficmanager · azure-communication-callautomation · azure-mgmt-reservations · azure-communication-email · phaxio · azure-communication-rooms · bandwidth-sdk