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 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.0.tar.gz (8.9 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.0-py3.3.egg (14.6 kB view details)

Uploaded Egg

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

Uploaded Egg

File details

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

File metadata

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

File hashes

Hashes for goslate-1.1.0.tar.gz
Algorithm Hash digest
SHA256 8805e318e4659acb325706246fe8b0c31f8b9ba266f057d039afde2d39065f3e
MD5 a5f80cf664919bcf70044c48488d26b1
BLAKE2b-256 f8b51c0a87d43b0f42b926156b4cbe2dfd7f52ce4df7351b8db70f9204a84cab

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for goslate-1.1.0-py3.3.egg
Algorithm Hash digest
SHA256 3778fee3e32a2fdfaa067874a77b2832faf865875827957bb7a137446f5e228e
MD5 cbae110a318b7bdba2b1877433d3334a
BLAKE2b-256 6668f76f7960e4a58b6957fd12f04892ba7510bd3ac0bd57657b9720ddb84b02

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for goslate-1.1.0-py2.7.egg
Algorithm Hash digest
SHA256 7c447b282c26a37e47bebd4321129f92f4a6570f8f31949942126424da3ebc40
MD5 c724c9e31a706a34baf114bc933b9d45
BLAKE2b-256 f8adff9a110d9985b2e369182356ac6c18e2694fa3b209ed2a80f2e66750724d

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