skillfed

deepl

Python library for the DeepL API.

deepl v1.32.0 1.3M downloads/30d#4,102 on PyPI1,330
Permissive license MIT Active released

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 deepl

uv

uv add deepl

poetry

poetry add deepl

Installing 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

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.6Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python Modules

Tags

python translation api clientdeepl api wrappermultilingual text translationlanguage translation libraryneural machine translation pythondocument translation apiauto language detection
translationapi-clientnlp

More Python Modules packages