skillfed

googletrans-py

Free Google Translate API for Python. Translates totally free of charge.

googletrans-py v4.0.0 73.9K downloads/30d#14,916 on PyPI51
Permissive license MIT DORMANT released

What it is and what it does

googletrans-py is a fork of the original googletrans library, updated to work with newer versions of httpx and httpcore. It provides a Python interface to Google Translate by reverse-engineering the web API, allowing you to translate text without needing an official API key or paying for a service. The package wraps HTTP requests to Google's translation endpoint and parses the responses.

The fork was created because the original project stalled at version 4.0.0rc1 (pre-release), and this version updates dependency compatibility. However, the maintainer explicitly states they have no intention to actively maintain the project and view it as a temporary workaround. Since the last release was over four years ago, there is significant risk that Google's service changes may have broken the underlying API calls.

Use it for:

  • Quickly translate text snippets in a Python script without setting up Google Cloud credentials or handling billing.
  • Build a simple chatbot or educational tool that needs to display content in multiple languages.
  • Prototype a translation feature before committing to an official, paid API integration.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides free Google Translate API access for Python, enabling text translation without authentication or charges.

No. While the package is permissively licensed and has no known vulnerabilities, it is dormant (last release 1584 days ago), explicitly unmaintained, and reverse-engineers an undocumented API that Google may have changed. Use the official Google Cloud Translation API instead, or choose an actively maintained alternative if cost is the concern.

Install

googletrans-py on PyPI

pip

pip install googletrans-py

uv

uv add googletrans-py

poetry

poetry add googletrans-py

Installing googletrans-py

Before you install

High install friction due to no runtime dependencies listed, but maintenance is dormant—last release was 1584 days ago. The package explicitly states the maintainer has no intention to actively maintain it and views this as a temporary solution.

License in practice

MIT license (permissive) means you can use, modify, and distribute the package freely with minimal restrictions, though you should retain the license notice.

Quickstart

pip install googletrans-py

from googletrans import Translator

translator = Translator()
result = translator.translate('Hello', src_language='en', dest_language='es')
print(result['text'])

Requires Python 3.7 or later. Google's translation service may rate-limit or block requests; this package reverse-engineers an undocumented API and is not officially supported by Google.

Verify before relying

  • Whether the package currently works against Google's live translation service or if the API endpoint has changed since the last release.
  • How reliably it handles rate limiting and whether it includes retry logic or backoff strategies.
  • Whether httpx compatibility improvements mentioned in the description actually resolve all dependency conflicts in modern environments.

Package facts

License MIT (permissive)
Python support supports the current Python release (>=3.7)
Install friction high — source build required
Runtime dependencies none
Maintenance dormant — 1,584 days since the last release
Last repo commit
First released
Downloads 73,878/month — #14,916 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: googletrans-py-4.0.0.tar.gz

Keywords: google, translate, translator

Development Status :: 5 - Production/StableIntended Audience :: EducationIntended Audience :: End Users/DesktopLicense :: FreewareOperating System :: MacOS :: MacOS XOperating System :: Microsoft :: WindowsOperating System :: POSIXProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Education

Tags

google translate api pythonfree translation librarytext translation without api keygoogle translate wrappermultilingual translation python
translationunmaintainedreverse-engineered-api

More Education packages