This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

A library for interacting with the Google Translate API

Project Description

A python library for interacting with the Google Translate API.

Note: This uses the translate v2 API

You will need a server key configured with Google, and a payment method on file, as there is no courtesy limit for translations.

Usage:

See the [Google Translate docs](https://developers.google.com/translate/v2/using_rest) for more details.

>>> from pyglot import Translator
>>> lang = Translator(key='YOUR-KEY')

# Translating text: >>> lang.translate(‘The quick brown fox jumped over the lazy dog’, target=’de’) GTranslation({u’translatedText’: u’Der schnelle braune Fuchs sprang xfcber den faulen Hund’, u’detectedSourceLanguage’: u’en’})

# Detecting the language of text: >>> lang.detect(‘The quick brown fox jumped over the lazy dog’) [GLanguage({u’isReliable’: False, u’confidence’: 0.79904306, u’language’: u’en’})]

# Getting a list of language codes, with names in english: >>> lang.languages(target=’en’) [GLanguage({u’name’: u’Afrikaans’, u’language’: u’af’}), GLanguage({u’name’: u’Albanian’, u’language’: u’sq’}), … ]

Release History

Release History

This version
History Node

0.1.1

History Node

0.1.0

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
pyglot-0.1.1.macosx-10.4-intel.tar.gz (3.8 kB) Copy SHA256 Checksum SHA256 any Dumb Binary Jul 17, 2012
pyglot-0.1.1.tar.gz (2.4 kB) Copy SHA256 Checksum SHA256 Source Jul 17, 2012

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