Skip to main content

sure_trans

Project description

sure-trans

pytestpythonCode style: blackLicense: MITPyPI version

Wrap translators with tenacity, auto-adapt

Install it

pip install sure-trans

# pip install git+https://github.com/ffreemt/sure-trans
# poetry add git+https://github.com/ffreemt/sure-trans
# git clone https://github.com/ffreemt/sure-trans && cd sure-trans

Use it

from sure_trans import sure_trans

print(sure_trans("书山有路勤为径", from_language="zh", to_language="en"))
# api used: iciba_api, took 4.57s
# only the diligent will be rewarded by God in their pursuit for knowledge

print(sure_trans("书中自有黄金屋", from_language="zh", to_language="en"))
# api used: caiyun_api, took 1.32s
# The book has its own house of gold

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

sure_trans-0.1.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

sure_trans-0.1.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file sure_trans-0.1.0.tar.gz.

File metadata

  • Download URL: sure_trans-0.1.0.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.8.5 Windows/10

File hashes

Hashes for sure_trans-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4e86d787d7b3609ea9824da5a980090de018ee8656dd3b84f8b11f8930e55d05
MD5 1889ab28b415a70b400fde501dcf61c5
BLAKE2b-256 175032b5d4c4f05266d1cef27f4e95dafd81732750987b07c26f6dfba1c13a34

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sure_trans-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.8.5 Windows/10

File hashes

Hashes for sure_trans-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d278211938749e4a3405428712776aaf8ba25c1fae90da31ba48e538ebf54d2d
MD5 8b2b6cf52d04c262b6cdcfd53b26e83b
BLAKE2b-256 4e32e7d3e0e305edead7892c18c50e37ccd391e593df63003e8074f7ed9bc16d

See more details on using hashes here.

Supported by

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