Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

This is a simple, yet powerful command line translator with google translate behind it. You can also use it as a Python module in your code.

Project Description

Now google has stop providing free translation API. So I have to switch to, which has a limit for 1000 words/day free
usage. Please let me know if there's any other better free translation API.

The default from language is English (en).
The default to language is Simplified Chinese (zh). Of course, you can specify it
in the parameter or commandline.




pip install translate

Or, you can download the source and


python install

Add sudo in the beginning if you met problem.

Command-Line Usage

In your command-line:


translate "This is a pen."



translate -f zh -t ja 我是谁?

Use As A Python Module


from translate import Translator
translator= Translator(to_lang="zh")
translation = translator.translate("This is a pen.")

The result is in translation, and it’s usually a unicode string.

Change Default Languages

In ~/.python-translate.cfg:


from_lang = auto
to_lang = 'de'

The cfg is not for using as a Python module.
Release History

Release History

This version
History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
translate-2.0.0.tar.gz (3.8 kB) Copy SHA256 Checksum SHA256 Source Apr 13, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting