Skip to main content

Goslate: Free Google Translate 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.2.0.tar.gz (9.2 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.2.0-py3.3.egg (14.8 kB view details)

Uploaded Egg

goslate-1.2.0-py2.7.egg (14.4 kB view details)

Uploaded Egg

File details

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

File metadata

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

File hashes

Hashes for goslate-1.2.0.tar.gz
Algorithm Hash digest
SHA256 ce288929f8cec50a5637de61dc67a17a6d89c8d52a0597b56a977a4d86e269a4
MD5 1f1d32d4034efc10f1e47171bd5bafda
BLAKE2b-256 4aae79537759b20a144f5f4a50d4d21c71ec0820f6bfd3f1a63c89e2f35639e3

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for goslate-1.2.0-py3.3.egg
Algorithm Hash digest
SHA256 0b85cae65721dd78e57bde533c9a42f3e1bf40cd3d1e0b99beddc92a581813a8
MD5 46491a5fcbe42ff603f8df8e280a8163
BLAKE2b-256 37e1e4e40eb27fe102fedc8069626314e49c7babe38bbc3f0553f00a1974b919

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for goslate-1.2.0-py2.7.egg
Algorithm Hash digest
SHA256 81c00939913a5edbf553ddc50f39bdf49836d7bd20d1cd9e0529fc098237fd23
MD5 da36f4987bb595677fb08f03970a4e0b
BLAKE2b-256 4c103fd6cd42180e5511d433e58567c8d8a1a45b809a5d5dfa7d1f78d5a7c943

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