translate
This is a simple, yet powerful command line translator with google translate behind it. You can also use it as a Python module in your code.
What it is and what it does
Translate is a Python translation wrapper that abstracts away the details of calling multiple online translation services. You can use it from the command line with `translate-cli -t zh "text"` or import it as a module to translate strings programmatically. It currently supports Microsoft Translation API, DeepL (free and pro), LibreTranslate, Yandex Translate, and Translated MyMemory, letting you switch providers by passing a provider name and optional authentication key.
The package depends on click for CLI argument handling, requests for HTTP calls, lxml for XML parsing, and libretranslatepy for LibreTranslate integration. It's actively maintained, has no known security vulnerabilities, and is classified as production-stable. The main trade-off is that you're delegating translation work to external services, so you'll need internet access and may need to manage API keys or rate limits depending on which provider you choose.
Use it for:
- Translate user-generated content in real time from a Python application without writing provider-specific API code.
- Build a command-line tool to quickly translate text snippets between languages during development or testing.
- Switch translation providers (e.g., from MyMemory to DeepL) by changing a configuration parameter without rewriting application logic.
- Integrate translation into a batch processing pipeline that reads text from files and outputs translations to another language.
- Prototype multilingual features in a web or desktop application before committing to a specific translation service.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Translate text between languages via command line or Python API, supporting multiple translation providers including DeepL, Microsoft Translator, LibreTranslate, Yandex, and MyMemory.
Yes. The package is actively maintained, has no known vulnerabilities, uses a permissive MIT license, and offers a clean abstraction over multiple translation providers. Install it if you need simple programmatic or CLI-based translation without vendor lock-in. The main consideration is that you'll depend on external translation services and their availability; verify that your chosen provider meets your performance and cost requirements before deploying to production.
Install
translate on PyPI
pip
pip install translateuv
uv add translatepoetry
poetry add translateInstalling translate
Before you install
Low install friction with a pure-Python wheel distribution. Active maintenance with a recent release (39 days ago) and steady repository activity; requires Python 3.6 or later.
License in practice
MIT license permits commercial and private use with minimal restrictions; you may use, modify, and distribute the package freely provided you include the license notice.
Quickstart
pip install translate
from translate import Translator
translator = Translator(to_lang="zh")
result = translator.translate("This is a pen.")
Requires Python 3.6 or later; most translation providers require internet connectivity and may require API keys or authentication tokens.
Verify before relying
- Rate limits or quotas imposed by individual translation providers are not documented in the fact sheet.
- Whether all listed providers (Microsoft, DeepL, LibreTranslate, Yandex, MyMemory) remain actively maintained and free to use.
- Performance characteristics and latency for real-time translation workloads.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.6) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — click, lxml, requests, libretranslatepy |
| Maintenance | actively maintained — 39 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 411,003/month — #6,860 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: translate-3.8.1-py2.py3-none-any.whl
Keywords: translate, translation, command, line
Tags
More Education packages
Sphinx generates professional documentation…
permissive · top 1,000 on PyPI
netaddrRepresents and manipulates IPv4, IPv6, MAC…
permissive · top 5,000 on PyPI
cuda-pythoncuda-python is a metapackage providing Pythonic…
unclear · top 5,000 on PyPI
cuda-coreProvides Pythonic APIs to access CUDA core…
permissive · top 5,000 on PyPI
googletransGoogletrans translates text and detects…
permissive · top 5,000 on PyPI
open3dOpen3D provides data structures and algorithms…
permissive · top 5,000 on PyPI
deep-translatorTranslates text between languages using…
permissive · top 5,000 on PyPI
libretranslatepyPython client library for the LibreTranslate…
permissive · top 15,000 on PyPI
deeplProvides a Python client to interact with the…
permissive · top 5,000 on PyPI
BabelDOCBabelDOC translates PDF documents between…
agpl · top 15,000 on PyPI
translatorsTranslators provides a unified Python interface…
copyleft · top 15,000 on PyPI
argostranslateArgos Translate is an open-source offline…
permissive · top 15,000 on PyPI
googletrans-pyProvides free Google Translate API access for…
permissive · top 15,000 on PyPI
azure-ai-translation-textProvides a Python client for Azure's neural…
unclear · top 15,000 on PyPI
google-cloud-translatePython client library for Google Cloud…
permissive · top 1,000 on PyPI