azure-ai-translation-text
Microsoft Corporation Azure Ai Translation Text Client Library for Python
What it is and what it does
This package is a Python client library for Microsoft Azure's Translator service, a cloud-based neural machine translation API. It wraps the REST endpoints to provide synchronous and asynchronous methods for translating text, detecting source languages, and transliterating text between scripts. The library depends on azure-core for credential handling and HTTP communication, isodate for date parsing, and typing-extensions for type hints.
Developers use it to integrate real-time translation into applications without building HTTP clients manually. The main entry point is TextTranslationClient, which requires an API key or token credential and an Azure region. The library supports querying supported languages and models, translating single or batch text items with configurable parameters, and converting text between writing systems—useful for applications serving multilingual users or handling non-Latin scripts.
Use it for:
- Integrate real-time text translation into a web or mobile application to serve users in multiple languages.
- Detect the source language of user input and automatically translate it to a target language in a chatbot or support system.
- Convert text from one script to another (e.g., Chinese Hanzi to Latin characters) for display or processing.
- Build a multilingual content pipeline that translates user-generated text or documents on demand.
- Query available translation languages and models to dynamically populate UI dropdowns or validate user requests.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides a Python client for Azure's neural machine translation service, enabling text translation, transliteration, and language detection across supported languages.
Yes. The package is production-stable, actively maintained, has no known vulnerabilities, and low install friction. Install it if you need to call Azure's Translator service from Python. You must have an Azure Translator resource and API key; the library itself is a straightforward wrapper around that service.
Install
azure-ai-translation-text on PyPI
pip
pip install azure-ai-translation-textuv
uv add azure-ai-translation-textpoetry
poetry add azure-ai-translation-textInstalling azure-ai-translation-text
Before you install
Low install friction with a pure-Python wheel and three lightweight runtime dependencies. The package is actively maintained with a recent release and no known vulnerabilities.
Quickstart
pip install azure-ai-translation-text
from azure.ai.translation.text import TextTranslationClient
from azure.core.credentials import AzureKeyCredential
credential = AzureKeyCredential(api_key)
client = TextTranslationClient(credential=credential, region=region)
response = client.translate(body=["Hello world"], to_language=["es"])
Requires an Azure Translator service resource and valid API key; Python 3.9 or later.
Verify before relying
- Whether LLM-based tone-specific and gender-aware translation variants are available in all regions or require specific model selection.
- Rate limits and request size constraints for production workloads beyond the service documentation reference.
Package facts
| License | not declared (unclear) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — isodate, azure-core, typing-extensions |
| Maintenance | actively maintained — 77 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 335,743/month — #7,473 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: azure_ai_translation_text-2.0.0-py3-none-any.whl
Keywords: azure, azure sdk
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-translation-documentTranslates documents stored in Azure Blob…
permissive · top 15,000 on PyPI
sarvamaiPython SDK for the Sarvam API, providing access…
unclear · top 15,000 on PyPI
azure-ai-textanalyticsProvides Python bindings to Azure's cloud-based…
permissive · top 15,000 on PyPI
deep-translatorTranslates text between languages using…
permissive · top 5,000 on PyPI
google-cloud-translatePython client library for Google Cloud…
permissive · top 1,000 on PyPI
libretranslatepyPython client library for the LibreTranslate…
permissive · top 15,000 on PyPI
argostranslateArgos Translate is an open-source offline…
permissive · top 15,000 on PyPI
azure-ai-documentintelligencePython client for Azure AI Document…
permissive · top 5,000 on PyPI
deeplProvides a Python client to interact with the…
permissive · top 5,000 on PyPI
googletransGoogletrans translates text and detects…
permissive · top 5,000 on PyPI