deepl
Python library for the DeepL API.
What it is and what it does
DeepL is a Python wrapper around the DeepL API, a neural machine translation service. It lets you send text or documents to DeepL's servers and receive high-quality translations back. The library handles authentication, HTTP communication via requests, and wraps the API responses into convenient Python objects.
You use it by instantiating a DeepLClient with your API key, then calling methods like translate_text() with your source text and target language code. The library supports optional features including automatic source-language detection, formality levels (formal vs. informal), custom glossaries, context hints, and a choice of translation models (quality-optimized or latency-optimized). It returns TextResult objects containing the translated text, detected source language, and billing information.
Use it for:
- Build a multilingual web application that translates user-generated content on demand without running your own translation infrastructure.
- Automate translation of customer support tickets or documentation into multiple languages for international teams.
- Create a glossary-aware translation tool that maintains consistent terminology for domain-specific terms across translations.
- Batch-process large volumes of text or documents by leveraging the library's support for multiple inputs and formality/model options.
- Integrate real-time translation into a chat or messaging application with language auto-detection.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides a Python client to interact with the DeepL API for translating text and documents with support for language detection, formality control, glossaries, and multiple translation models.
Yes. The library is actively maintained (released 1 day ago), has no known vulnerabilities, low install friction, and a permissive MIT license. It is well-suited for any Python application that needs to integrate DeepL's translation service. The main constraint is that you must obtain and manage a DeepL API key, and translation volume is subject to your account tier's character limits.
Install
deepl on PyPI
pip
pip install deepluv
uv add deeplpoetry
poetry add deeplInstalling deepl
Before you install
Low friction: pure Python wheel with a single runtime dependency (requests 2.32.4+). Active maintenance with a release 1 day ago and 1330 repository stars. Tested on Python 3.9 through 3.13.
License in practice
MIT license (permissive): you can use this library freely in commercial and private projects with minimal restrictions, provided you include the license notice.
Quickstart
pip install deepl
import deepl
auth_key = "your-api-key-here"
client = deepl.DeepLClient(auth_key)
result = client.translate_text("Hello, world!", target_lang="FR")
print(result.text) # "Bonjour, le monde !"
Requires a DeepL API authentication key (free tier allows 500,000 characters/month); requires Python 3.9 or later.
Verify before relying
- Whether the library fully supports all current DeepL API features or if some newer API additions lag behind the service.
- Performance characteristics and rate-limiting behavior when handling large batches or high-frequency requests.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (<4,>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — requests |
| Maintenance | actively maintained — 1 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,291,989/month — #4,102 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: deepl-1.32.0-py3-none-any.whl
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
deep-translatorTranslates text between languages using…
permissive · top 5,000 on PyPI
translateTranslate text between languages via command…
permissive · top 15,000 on PyPI
translatorsTranslators provides a unified Python interface…
copyleft · top 15,000 on PyPI
libretranslatepyPython client library for the LibreTranslate…
permissive · top 15,000 on PyPI
azure-ai-translation-textProvides a Python client for Azure's neural…
unclear · top 15,000 on PyPI
googletransGoogletrans translates text and detects…
permissive · top 5,000 on PyPI
google-cloud-translatePython client library for Google Cloud…
permissive · top 1,000 on PyPI
azure-ai-translation-documentTranslates documents stored in Azure Blob…
permissive · top 15,000 on PyPI
BabelDOCBabelDOC translates PDF documents between…
agpl · top 15,000 on PyPI
sarvamaiPython SDK for the Sarvam API, providing access…
unclear · top 15,000 on PyPI