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)}')
OTHER SUPPORT
any customization demand,contact me with email
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.4.tar.gz
(5.2 kB
view hashes)
Built Distribution
Close
Hashes for translate_util-1.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47f273ef6a37b1d36f7124b7e80aae5d6218887762d788cd1a041ce4d2d5f178 |
|
MD5 | eace7bc94474a7cf7717a9775c73e5d8 |
|
BLAKE2b-256 | dce5122c7a282d32d611e49bb3bb468d2960d704ba64865192a786f69ce70d70 |