Skip to main content

Pythonic interface to google translate services

Project description


Pythonic interface with CLI to Google's free Translate API.


  • Supports request splitting for large requests (>4000 chars default) to circumvent GET char limit. Requests will be split on end of sentences preferably to preserve quality of translation.
  • Proxy support via HTTPS_PROXY environment variable.
  • Agent spoofing.
  • Uses google's auto language detection where possible by default if not explicitly specified.


client = Translator()
client.translate('Bonjour', from_lang='fr', to_lang='en')
>>> 'Hello'

Command Line tool:

python -t en -f fr -q "Bonjour"
>>> Hello


This project is licensed under the MIT License - see the file for details

Project details

Release history Release notifications

This version
History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
pygtranslate-0.0.1-py3-none-any.whl (4.6 kB) Copy SHA256 hash SHA256 Wheel py3
pygtranslate-0.0.1.tar.gz (4.1 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page