skillfed

azure-ai-translation-text

Microsoft Corporation Azure Ai Translation Text Client Library for Python

azure-ai-translation-text v2.0.0 335.7K downloads/30d#7,473 on PyPI5,588
License unclear Active released

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-text

uv

uv add azure-ai-translation-text

poetry

poetry add azure-ai-translation-text

Installing 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

Development Status :: 5 - Production/StableProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9

Tags

azure text translationmachine translation apineural machine translation pythontransliteration servicelanguage detection translationazure translator clientmultilingual text translation
azure-sdknlpcloud-api

More Linguistic packages