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.1.2.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.2-py3.3.egg (14.8 kB view details)

Uploaded Egg

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

Uploaded Egg

File details

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

File metadata

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

File hashes

Hashes for goslate-1.1.2.tar.gz
Algorithm Hash digest
SHA256 18439ccf42b37616c05a022e2566bbedb1c2f6037628eba16590ab476e11c257
MD5 2890642cddab7ec13d44bc423712961e
BLAKE2b-256 c02420170bbd2de326a9ab4a98d52d312023e80747d419fc7dffdd770cddaa51

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for goslate-1.1.2-py3.3.egg
Algorithm Hash digest
SHA256 49b5c867ab63e744885b0e6ba7f91aa0f70e1337c581dd217267a5ee2bec5c6e
MD5 a6f1c851e2554efb1d6cfcfd78ab79d9
BLAKE2b-256 d66c43eaae30c5fb5f069212a94c29c8c2718074545fbe282ce5e34beb863f5e

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for goslate-1.1.2-py2.7.egg
Algorithm Hash digest
SHA256 70bb74699b6b93936fc1a0ff078da471659af7441b7da98fdbbce3c9cff5c06b
MD5 7cb4b2d18523117c87faccbe57de78ec
BLAKE2b-256 9c7965ff496ea9bb1bcefb6d0e245fafe1e2dcd379e257b85f67be9aad777401

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