caiyun_tr
Project description
caiyun-tr
caiyun-tr
Install it
pip install caiyun-tr --upgrade
# pip install git+https://github.com/ffreemt/caiyun-tr
# poetry add git+https://github.com/ffreemt/caiyun-tr
# git clone https://github.com/ffreemt/caiyun-tr && cd caiyun-tr
Use it
from caiyun_tr import caiyun_tr
print(caiyun_tr("test this"))
# 试试这个
# only certain pairs are valid, en/ja is not valid
print(caiyun_tr("test this", from_lang="en", to_lang="ja"))
# Exception: Unsupported trans_type (language pair)
# zh/ja is valid
print(caiyun_tr("test this", from_lang="zh", to_lang="ja"))
# テストして
print(caiyun_tr("テストして", 'ja', "zh"))
# 测试一下
Only certain from_lang/to_lang pairs are supported by the website. There is nothing we can do about it.
If the caiyun website changes, this package will likely no longer work. If you feedback, the dev will try to fix it -- there is no guarantee thou.
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
caiyun-tr-0.1.1.tar.gz
(5.5 kB
view hashes)
Built Distribution
Close
Hashes for caiyun_tr-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad03cf96dffa2a6c4470231cec276f5593e870034cf3ec657e8496447190bf64 |
|
MD5 | be50641b80588806b7f4a4f72743a0be |
|
BLAKE2b-256 | 971ba7b7cae6d452333ca39187dee455f620a74944f76779d8562aaa2c606359 |