azure-ai-textanalytics
Microsoft Azure Text Analytics Client Library for Python
What it is and what it does
This package is the official Python client for Azure's cloud-hosted Natural Language Processing service. It wraps the Azure Cognitive Service for Language API, allowing you to submit text documents for analysis and retrieve structured results—sentiment scores, recognized entities, detected language, extracted key phrases, PII redaction, and text summaries. You authenticate with an API key or Azure Active Directory credential and instantiate a TextAnalyticsClient pointing to your Azure resource endpoint; then you call methods on batches of documents.
The package is built on azure-core and depends on azure-common, isodate, and typing-extensions. It targets Python 3.8 and later and defaults to API version 2023-04-01, though you can select older versions (3.0, 3.1, 2022-05-01) for backward compatibility. The library is actively maintained, production-stable, and widely used; it carries no known vulnerabilities.
Use it for:
- Analyze customer feedback or reviews to extract sentiment scores and key topics at scale via cloud API.
- Identify and redact personally identifiable information (PII) from documents before storage or sharing.
- Extract named entities (people, organizations, locations) from unstructured text for data enrichment.
- Detect the language of incoming user-generated content to route it to appropriate downstream processors.
- Summarize long documents or support tickets automatically using extractive or abstractive summarization.
- Build a multi-language content moderation pipeline by combining language detection with sentiment analysis.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides Python bindings to Azure's cloud-based Natural Language Processing service for sentiment analysis, entity recognition, language detection, key phrase extraction, PII detection, and text summarization.
Yes. This is a production-stable, actively maintained official Microsoft SDK with low install friction, permissive MIT licensing, no known vulnerabilities, and a large user base. Install it if you need to call Azure's NLP service from Python; it is the canonical way to do so. The only prerequisite is an Azure subscription and configured credentials.
Install
azure-ai-textanalytics on PyPI
pip
pip install azure-ai-textanalyticsuv
uv add azure-ai-textanalyticspoetry
poetry add azure-ai-textanalyticsInstalling azure-ai-textanalytics
Before you install
Low friction install with four stable runtime dependencies (azure-core, azure-common, isodate, typing-extensions). Actively maintained with recent releases; last commit 2026-08-14. Requires Python 3.8 or later.
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
pip install azure-ai-textanalytics
from azure.core.credentials import AzureKeyCredential
from azure.ai.textanalytics import TextAnalyticsClient
client = TextAnalyticsClient(
endpoint="https://<resource-name>.cognitiveservices.azure.com/",
credential=AzureKeyCredential("<api_key>")
)
result = client.analyze_sentiment(["I love this product!"])
Requires an active Azure subscription and a Cognitive Services or Language service resource with endpoint and API key.
Verify before relying
- Whether all 12 NLP features are available in the current stable API version 2023-04-01.
- Performance characteristics and rate limits for batch processing of documents.
- Whether regional endpoints support Azure Active Directory authentication or only custom subdomains.
Package facts
| License | MIT License (permissive) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — azure-core, azure-common, isodate, typing-extensions |
| Maintenance | actively maintained — 162 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 744,111/month — #5,173 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: azure_ai_textanalytics-5.4.0-py3-none-any.whl
Keywords: azure, azure sdk, text analytics, cognitive services, natural language processing
Tags
More Linguistic packages
Detects and normalizes text encoding from…
permissive · top 100 on PyPI
tiktokentiktoken is a fast BPE tokenizer that converts…
permissive · top 1,000 on PyPI
chardetDetects character encoding and language in byte…
permissive · top 1,000 on PyPI
text-unidecodeConverts Unicode text to ASCII by…
copyleft · top 1,000 on PyPI
larkLark is a parsing library that builds abstract…
permissive · top 1,000 on PyPI
tree-sitterPython bindings to the tree-sitter parsing…
permissive · top 1,000 on PyPI
azure-ai-contentsafetyDetects harmful content in text and images by…
permissive · top 5,000 on PyPI
azure-ai-documentintelligencePython client for Azure AI Document…
permissive · top 5,000 on PyPI
azure-ai-language-conversationsA Python client library for Azure…
permissive · top 15,000 on PyPI
azure-ai-language-questionansweringPython client library for Azure's Question…
permissive · top 15,000 on PyPI
azure-ai-translation-textProvides a Python client for Azure's neural…
unclear · top 15,000 on PyPI
azure-ai-formrecognizerExtracts text, structure, and key-value pairs…
permissive · top 5,000 on PyPI
azure-ai-translation-documentTranslates documents stored in Azure Blob…
permissive · top 15,000 on PyPI
azure-cognitiveservices-speechProvides Python bindings to Microsoft's Speech…
unclear · top 5,000 on PyPI
jigsawstackA Python SDK for accessing JigsawStack's hosted…
permissive · top 15,000 on PyPI
textblobTextBlob provides a simple API for common…
permissive · top 5,000 on PyPI