Skip to main content

Translate API for Python3 used Google.The default Google server for China, you can switch to use.

Project description

1. Feactures:

  • Google. - translate_api is a python3 library that uses the translation functionality of the Google interface.

  • Switch the server. - The default server is Google-China server, the user can switch to (google.com) server.

  • All languages can be translated.

2. Usage:

>>>from translate_api.translate_api import api

>>>api(‘Hello,World!’)

‘你好,世界!’

>>>api(‘こんにちは!’,’ja’,’ko’)

‘안녕하세요!’

3. Tips:

  • pip install translate_api

  • api(text=r’’,from_language=’en’,to_language=’zh-CN’,host=’https://translate.google.cn’,proxy=None)

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

translate_api-2.1.0.tar.gz (6.2 kB view hashes)

Uploaded Source

Built Distribution

translate_api-2.1.0-py3.6.egg (9.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page