translate tool support(google,baidu,iciba,youdao)
Project description
translate utils support google,baidu,iciba,youdao
[introduction]
- support version: python 3.0+
down install
- pip install:
pip install translate_util
DEMO
from translate_util.translate_tool import translate_other2cn,translate_other2en
# translate other language to chinese (default use google)
print(translate_other2cn('china'))
# translate other language to english (default use google)
print(translate_other2en('中国'))
# other translate demo
content = 'china'
for plat in ['google', 'baidu', 'iciba', 'youdao']:
print(f'{plat}:{translate_other2cn(content, plat)}')
content = '中国'
for plat in ['google', 'baidu', 'iciba', 'youdao']:
print(f'{plat}:{translate_other2en(content, plat)}')
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_util-1.0.2.tar.gz
(5.1 kB
view hashes)
Built Distribution
Close
Hashes for translate_util-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dce9187446ca4581ff43a1fa137398ee37a245b997c086c3e6f307f410778bf8 |
|
MD5 | 83607db8b0501fac03aba2f74cb8e642 |
|
BLAKE2b-256 | 252cb94a54dbb4bb15bf3cb31158200466ebe18a4e81298a55cee24d038860d0 |