Skip to main content

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

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 </pre>

Or, you can download the source and

<pre> python setup.py install </pre>

Add sudo in the beginning if you met problem.

## Command-Line Usage

In your command-line:

<pre> translate “This is a pen.” </pre>

Or

<pre> translate -f zh -t ja 我是谁? </pre>

## Use As A Python Module

<pre> from translate import Translator translator= Translator(to_lang=”zh”) translation = translator.translate(“This is a pen.”) </pre>

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

Project details


Download files

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

Source Distribution

translate-0.0.5.tar.gz (3.4 kB view details)

Uploaded Source

File details

Details for the file translate-0.0.5.tar.gz.

File metadata

  • Download URL: translate-0.0.5.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for translate-0.0.5.tar.gz
Algorithm Hash digest
SHA256 8b7045062ea329e49b8f08caf64627e87ce23568bcade55606264614d82c9361
MD5 4b4015c82306440ed51657ff14a55801
BLAKE2b-256 6e4cf57b3cb9f9ae8313874827a1328b66c76ac08201483f8be7c98d273353c3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page