Introduction

Description

Small library to translate text for free using Google translate.

Note

google_translate is not a replacement of the official Google translate API.

You should use the official API for large projects.

Features

  • Translate text
  • Retrieve additional translations
  • Retrieve info dictionary
  • Detect the source language
  • Detect typos
  • Text romanization [1]
  • Proxy support
  • Multiple user-agents support
  • Python logging support
  • Caching

Requirements

Installation

From Source

  1. Download & extract source from here
  2. Change directory into google-translate-0.2.4/
  3. Run python setup.py install

From Pypi

  1. Just run pip install doodle-translate

License

google-translate package is distributed under the UNLICENSE license.

Quick start

Use GoogleTranslator to translate a word:

from google_translate import GoogleTranslator

translator = GoogleTranslator()
print translator.translate("hello world", "french")

Footnotes

[1]Romanization <https://en.wikipedia.org/wiki/Romanization>