Skip to main content

Sign text for baidu fanyi

Project description

baidu-sign

pytestpythonCode style: blackLicense: MITPyPI version

Sign text for baidu fanyi

Intro

baidu_sign makes use of google_sign for text shorter than 31 characters which is about 30 times faster than js2py_sign. google_sign is a direct python implementation while js2py_sign is converted from js to python using js2py.

Install it

pip install baidu-sign

Use it

from baidu_sign import baidu_sign

print(baidu_sign("test")
# "431039.159886"

print(baidu_sign("test " * 10))
# 403909.183028

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

baidu-sign-0.1.0.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

baidu_sign-0.1.0-py3-none-any.whl (4.0 kB view hashes)

Uploaded Python 3

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