libretranslatepy
Python bindings for LibreTranslate API
Decision gist · record as of 2026-08-14
Yes, if you are already using LibreTranslate and want a simple Python client. The package is permissively licensed, has no dependencies, and installs cleanly. However, verify that it works with your target LibreTranslate version before production use, given the 850-day gap since the last release. For new projects, consider whether calling the LibreTranslate API directly via requests or urllib is simpler than adding a dependency.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a running LibreTranslate API endpoint (either self-hosted or a public mirror); the package itself is a client library and does not provide translation services.
- Low friction install with no runtime dependencies.
- Last release was in April 2024 and the repository remains active, though the package is aging—no updates in over 850 days.
License · maintenance · safety
permissive license (permissive) — Licensed under MIT or Public Domain (permissive), so you can use it freely in commercial or private projects with minimal attribution requirements.
last release 2024-04-16 (850 days) · last repo commit 2025-03-02 · 131 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 414,381 downloads/mo, #6,834 on PyPI
Alternatives
Verify before relying
pip install libretranslatepy
from libretranslatepy import LibreTranslateAPI
lt = LibreTranslateAPI("https://libretranslate.com/")
print(lt.translate("Hello", "en", "es"))
print(lt.detect("Hello"))
print(lt.languages())- Whether the package works reliably with current LibreTranslate API versions given the 850-day gap since last release.
- Support status for Python 2 (listed in classifiers but likely obsolete given modern Python ecosystem).
What it is and what it does
LibreTranslate-py is a lightweight Python wrapper around the LibreTranslate API, a free and open-source translation service. It handles the HTTP communication with a LibreTranslate endpoint and exposes three main operations: translating text between language pairs, detecting the language of input text, and retrieving the list of supported languages. The package uses only Python standard library (urllib and json), so it has zero runtime dependencies and installs quickly.
You point it at a LibreTranslate endpoint—either a public mirror or a self-hosted instance—and call methods to translate, detect, or list languages. It's useful when you want programmatic access to LibreTranslate without building HTTP requests manually. The package is stable and permissively licensed, but has not been updated in over 850 days, so compatibility with the latest LibreTranslate API versions should be verified before relying on it in production.
Use it for
- Translate user-submitted text in a web application by calling a LibreTranslate mirror without managing HTTP requests directly.
- Detect the language of incoming messages to route them to language-specific processing pipelines.
- Query available languages from a LibreTranslate endpoint to populate UI dropdowns or validate language codes.
- Build a simple CLI tool that wraps LibreTranslate for batch text translation tasks.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are already using LibreTranslate and want a simple Python client.
The package is permissively licensed, has no dependencies, and installs cleanly. However, verify that it works with your target LibreTranslate version before production use, given the 850-day gap since the last release. For new projects, consider whether calling the LibreTranslate API directly via requests or urllib is simpler than adding a dependency.
Install
libretranslatepy on PyPI
Before you install
Low friction install with no runtime dependencies. Last release was in April 2024 and the repository remains active, though the package is aging—no updates in over 850 days.
Requires a running LibreTranslate API endpoint (either self-hosted or a public mirror); the package itself is a client library and does not provide translation services.
License in practice
Licensed under MIT or Public Domain (permissive), so you can use it freely in commercial or private projects with minimal attribution requirements.
Quickstart
pip install libretranslatepy
from libretranslatepy import LibreTranslateAPI
lt = LibreTranslateAPI("https://libretranslate.com/")
print(lt.translate("Hello", "en", "es"))
print(lt.detect("Hello"))
print(lt.languages())
Verify before relying
- Whether the package works reliably with current LibreTranslate API versions given the 850-day gap since last release.
- Support status for Python 2 (listed in classifiers but likely obsolete given modern Python ecosystem).
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=2.6 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Aging 850 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 414,381 / month, #6,834 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 2Programming Language :: Python :: 3Topic :: Scientific/Engineering :: Interface Engine/Protocol Translator |
Evidence: libretranslatepy-2.1.4-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “libretranslate python client”
- libretranslatepyPython client library for the LibreTranslate API that provides text…
- translateTranslate text between languages via command line or Python API,…
- argostranslateArgos Translate is an open-source offline neural machine translation…
Give your agent the search over MCP, or paste the wish link into any chat.
More Interface Engine/Protocol Translator packages
Fetches financial and market data from Yahoo Finance's public APIs, including ticker information, historical prices, and live streaming data.
However, do not use it for commercial applications or high-volume data collection without confirming compliance with Yahoo's terms of service.
Converts arbitrary Python objects to JSON strings and back, extending the standard json module with support for custom classes, numpy arrays, and nested structures through JSONEncoder and JSONDecoder subclasses.
However, maintenance is aging (last release 275 days ago), so verify that its feature set meets your needs before adopting it for new projects.
Computes Cyclic Redundancy Check (CRC) values for 8, 16, 24, 32, or 64-bit polynomials, providing both Python functions and a class interface compatible with standard library hash modules.
However, it is abandoned (last release 2010-06-27) with no documented support beyond Python 3.1.
PyUSB provides Python access to USB devices on the host machine through a backend-neutral API, supporting libusb 1.0, libusb 0.1, and OpenUSB backends.
PyVISA provides Python bindings to VISA libraries for controlling measurement instruments and test equipment over GPIB, RS232, Ethernet, and USB interfaces.
Install it if you need to automate laboratory equipment; skip it if you have no instruments to control or use vendor-specific SDKs instead.
PyVISA-py is a pure Python backend for the VISA standard that enables communication with laboratory instruments over Serial, USB, GPIB, and Ethernet without requiring proprietary VISA libraries.
See also translate · deep-translator · translators · azure-ai-translation-text · argostranslate · deepl · googletrans · google-cloud-translate · googletrans-py · python-lokalise-api