skip to navigation
skip to content

Not Logged In

translate 0.0.6

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.

Latest Version: 1.0.7

Google translate as Python module & command line tool. No key, no authentication whatsoever. The default target language is Simplified Chinese.

利用google translate实现的命令行工具(translate),也可以当做Python模块用在你的代码中。

Installation

<pre>
pip install translate

Or, you can download the source and

python setup.py install

Add sudo in the beginning if you met problem.

Command-Line Usage

In your command-line:

translate "This is a pen."

Or

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.

 
File Type Py Version Uploaded on Size
translate-0.0.6.tar.gz (md5) Source 2014-04-08 3KB
  • Downloads (All Versions):
  • 14 downloads in the last day
  • 148 downloads in the last week
  • 287 downloads in the last month