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

$ 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 text file(s) into Chinese, output to UTF-8 file

    $ goslate.py -t zh-CN source/file/a.txt "source file b.txt" > output.txt

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.0.0.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

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

goslate-1.0.0-py2.7.egg (13.5 kB view details)

Uploaded Egg

File details

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

File metadata

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

File hashes

Hashes for goslate-1.0.0.tar.gz
Algorithm Hash digest
SHA256 216f6e0853e30f6ee04e2fd52e9175faa29bd0e8fdde93ec8cff7090b3ba527e
MD5 d6fde3181bd4d95709c6ef9fe1c12af2
BLAKE2b-256 8f6466ea79ad18dc75de606f09094cd1ab9073c81f5d5369f5cb5c2a2759bf36

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for goslate-1.0.0-py2.7.egg
Algorithm Hash digest
SHA256 ba69c0788701527769cd999d6382b05bcc96a651d30c423bf136c95bb7411ae7
MD5 37ca56da4a1e560f6cbc8b74fe30bb21
BLAKE2b-256 2fb17983ca23a6a5e181f86225403831766b105180af5fc1af5159694f275a55

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