Skip to main content

Unofficial Free Google Translation API

Project description

goslate provides you free python API to google translation service by querying google translation website.

It is:

  • Free: you know it ;)

  • Fast: batch, cache and concurrently fetch

  • Simple: single file module, just Goslate().translate('Hi!', 'zh-CN')

Usage

>>> import goslate
>>> gs = goslate.Goslate()
>>> print gs.translate('hello world', 'de')
hallo welt

For batch translation, language detection, proxy support etc., please check API reference

Install

goslate support both Python2 and Python3. You could install it via:

$ pip install goslate

or just download latest goslate.py directly and use

futures is optional but recommended to install for best performance.

CLI

goslate.py is also a command line tool

  • Translate stdin input into Chinese

    $ echo "hello world" | goslate.py -t zh-CN
  • Translate 2 text files into Chinese, output to UTF-8 file

    $ goslate.py -t zh-CN -o utf-8 source/1.txt "source 2.txt" > output.txt

use --help for detail usage

$ goslate.py -h

Contribute

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

goslate-1.1.1.tar.gz (9.0 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

goslate-1.1.1-py3.3.egg (14.7 kB view details)

Uploaded Egg

goslate-1.1.1-py2.7.egg (14.3 kB view details)

Uploaded Egg

File details

Details for the file goslate-1.1.1.tar.gz.

File metadata

  • Download URL: goslate-1.1.1.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for goslate-1.1.1.tar.gz
Algorithm Hash digest
SHA256 a6b187215b7f15f4c69e8005c6492ed57ab013c67d0451b24eb6c05bc830289f
MD5 cd4cb0d76fc92b280100085ade32c82f
BLAKE2b-256 6743fd4978dc4f34f02cfd5a30e181244b1dc8b3b3bd056e5b57989120923ed9

See more details on using hashes here.

File details

Details for the file goslate-1.1.1-py3.3.egg.

File metadata

  • Download URL: goslate-1.1.1-py3.3.egg
  • Upload date:
  • Size: 14.7 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for goslate-1.1.1-py3.3.egg
Algorithm Hash digest
SHA256 6e9fee809e6783b3bb4d42403a6aff172c3d4373531618c4ba40205dc8868180
MD5 2a5b18f8ede73fb286646fbbeea45758
BLAKE2b-256 fb31e70bc58a81b4238d77b96de8cdb5e731b260ee0a8d4c7d0648c96b0013e3

See more details on using hashes here.

File details

Details for the file goslate-1.1.1-py2.7.egg.

File metadata

  • Download URL: goslate-1.1.1-py2.7.egg
  • Upload date:
  • Size: 14.3 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for goslate-1.1.1-py2.7.egg
Algorithm Hash digest
SHA256 6db92906cdc5f0005d1a1cebaae70cd40d50c8ded7320954f2f924fb469580d5
MD5 acab67344c55d8fefbe51117037e3365
BLAKE2b-256 6250bb07f0b1bf274b417d4e921917b02f8be556d5f1f4dc9110ff989b1147a7

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