azure-ai-textanalytics
Microsoft Azure Text Analytics Client Library for Python
Decision gist · record as of 2026-08-14
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.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires an active Azure subscription and a Cognitive Services or Language service resource with endpoint and API key.
- 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.
License · maintenance · safety
MIT License (permissive) — 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.
last release 2026-03-05 (162 days) · last repo commit 2026-08-14 · 5,588 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 744,111 downloads/mo, #5,173 on PyPI
Alternatives
Verify before relying
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!"])- 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.
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 on it.
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
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.
Requires an active Azure subscription and a Cognitive Services or Language service resource with endpoint and API key.
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!"])
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 packagesazure-coreazure-commonisodatetyping-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 |
| 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.8Programming Language :: Python :: 3.9 |
Evidence: azure_ai_textanalytics-5.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 text analytics python”
- azure-ai-textanalyticsProvides Python bindings to Azure's cloud-based Natural Language…
- azure-mgmt-streamanalyticsProvides Python client library for managing Azure Stream Analytics…
- azure-mgmt-loganalyticsProvides a Python client library for managing Azure Log Analytics…
Give your agent the search over MCP, or paste the wish link into any chat.
More Linguistic packages
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
tiktoken is a fast BPE tokenizer that converts text into token sequences compatible with OpenAI models, supporting multiple encoding schemes including o200k_base and model-specific encodings.
Install it if you work with OpenAI APIs or need to understand token boundaries in GPT-family models.
Detects character encoding and language in byte sequences with high accuracy, supporting 99 encodings and returning confidence scores, language tags, and MIME types.
Install it if you need to detect character encoding or language in byte data; the rewrite makes it substantially faster and more accurate than its predecessors.
Converts Unicode text to ASCII by transliterating non-ASCII characters into their closest ASCII equivalents, with no runtime dependencies.
However, if transliteration quality or ongoing maintenance matters, consider unidecode instead despite its GPL-only license.
Lark is a parsing library that builds abstract syntax trees from context-free grammars, supporting multiple parsing algorithms (Earley, LALR(1), CYK) with automatic line and column tracking.
Python bindings to the tree-sitter parsing library, enabling incremental parsing and syntax tree analysis for source code.
See also azure-ai-contentsafety · azure-ai-documentintelligence · azure-ai-language-conversations · azure-ai-language-questionanswering · azure-ai-translation-text · azure-ai-formrecognizer · azure-ai-translation-document · azure-cognitiveservices-speech · jigsawstack · textblob