translate tool support(google)
Project description
translate utils support google
[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_text
# translate other language to chinese (default use google)
print(translate_other2cn('china'))
# translate other language to english (default use google)
print(translate_other2en('中国'))
# translate other language to de ,support any language
# tl demo: zh-CN/de/fr/en/it/es
print(translate_text('china', tl='de'))
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.1.4.tar.gz
(6.7 kB
view details)
Built Distribution
File details
Details for the file translate_util-1.1.4.tar.gz
.
File metadata
- Download URL: translate_util-1.1.4.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.4.2 requests/2.24.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84e9f3a7b6e51b84697e7f87cce0552f1152447a25d4fed771ba0bb5e13134b2 |
|
MD5 | 4116f4ddb1acd97e105de17feb26aced |
|
BLAKE2b-256 | 9c00f28e40fc11b3c5e129968e00cc7ed11abcd32b0c23f81bda7eb4870f56ac |
File details
Details for the file translate_util-1.1.4-py3-none-any.whl
.
File metadata
- Download URL: translate_util-1.1.4-py3-none-any.whl
- Upload date:
- Size: 10.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.4.2 requests/2.24.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a70f36fc72bbffbc50262026ba7158cd64acfaab4b0af5d751c0ccf674a857e6 |
|
MD5 | 12362ea6841e92e149d02f0c3dfa56d8 |
|
BLAKE2b-256 | 8080e1a1feb8c46173afb4f2d1e4b8ee9a9847b65d73bdacfd71e80944e5ba8b |