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:* ###
```python
>>>from translate_api.translate_api import api
>>>print(api())
''
## Default function api(): api(text=r'', from_language='en',to_language='zh-CN',host='https://translate.google.cn')
>>>print(api('Hello,World!','en','zh-CN'))
'你好,世界!'
>>>print(api('你好,世界!','zh-CN','ko'))
'안녕, 세상!'
>>>print(api('こんにちは世界!','ja','en'))
'Hello World!'
## Finally, you can try switching the `host` to use.
```
- *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:* ###
```python
>>>from translate_api.translate_api import api
>>>print(api())
''
## Default function api(): api(text=r'', from_language='en',to_language='zh-CN',host='https://translate.google.cn')
>>>print(api('Hello,World!','en','zh-CN'))
'你好,世界!'
>>>print(api('你好,世界!','zh-CN','ko'))
'안녕, 세상!'
>>>print(api('こんにちは世界!','ja','en'))
'Hello World!'
## Finally, you can try switching the `host` to use.
```
Project details
Release history Release notifications | RSS feed
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-1.0.2.zip
(9.2 kB
view hashes)
Built Distribution
translate_api-1.0.2-py3.5.egg
(9.4 kB
view hashes)