Skip to main content

caiyun_tr

Project description

caiyun-tr

pytestpythonCode style: blackLicense: MITPyPI version

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


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.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

caiyun_tr-0.1.0-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file caiyun-tr-0.1.0.tar.gz.

File metadata

  • Download URL: caiyun-tr-0.1.0.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.1 CPython/3.8.10 Windows/10

File hashes

Hashes for caiyun-tr-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e908d869d018f07c92c7432b82b44bbebedef8b68d747feda4f3414a448067d6
MD5 79e6c8078cd277827b44d41a96a68dd8
BLAKE2b-256 e9c60c37d02a2a7d72ca64f2032cb80440823f9fbfee32020722f375b121ebae

See more details on using hashes here.

File details

Details for the file caiyun_tr-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: caiyun_tr-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.1 CPython/3.8.10 Windows/10

File hashes

Hashes for caiyun_tr-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 287c8c0e99bd3dee5102c6a7874c5efe2e63969299055ab6c4ba3c43989338f0
MD5 da547e47ea31a4b63db5af67d1aea6bd
BLAKE2b-256 d6f02f8fdd45ed6dd22c3f72fe56cd2c5cf0a0dc97e491ed5bc5ea9a03d319fa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page