Skip to main content

gtranslate-python

Pythonic interface with CLI to Google's free Translate API.

Features:

  • Supports request splitting for large requests (>4000 chars default) to circumvent GET char limit. Requests will be split on end of sentences preferably to preserve quality of translation.
  • Proxy support via HTTPS_PROXY environment variable.
  • Agent spoofing.
  • Uses google's auto language detection where possible by default if not explicitly specified.

Usage:

client = Translator()
client.translate('Bonjour', from_lang='fr', to_lang='en')
>>> 'Hello'

Command Line tool:

python translator.py -t en -f fr -q "Bonjour"
>>> Hello

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pygtranslate-0.0.1.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

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

pygtranslate-0.0.1-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file pygtranslate-0.0.1.tar.gz.

File metadata

  • Download URL: pygtranslate-0.0.1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pygtranslate-0.0.1.tar.gz
Algorithm Hash digest
SHA256 7999457aaa6db6d3c8ba1672685213856df6aa908a5c2a2b044f7cfc7b8218e1
MD5 74dcaed7305509869224ee8f41660516
BLAKE2b-256 52b6f7d197bf5f76c31bb59c8806773fe23f293e2e11f8dd1d1fe6914daeeba7

See more details on using hashes here.

File details

Details for the file pygtranslate-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pygtranslate-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8cc8c1c79bfa3de87ff08f1abc19a1445e34a1bbc3a4698e0055c53b38df5266
MD5 25cd7ded9a41f5706c6e13368d77e1e9
BLAKE2b-256 210450c96e2c73dbd01b546efa3bace25dc0cedfb4a6dea914270f3c52da61aa

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page