Skip to main content

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

Metadata

Release files for baidu-sign 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for baidu-sign 0.1.0
File Size Uploaded
baidu-sign-0.1.0.tar.gz 3.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for baidu-sign 0.1.0
File Interpreter ABI Platform
baidu_sign-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.4 kB

Release files / baidu-sign-0.1.0.tar.gz

Download URL baidu-sign-0.1.0.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c222bd3e1c99ac9e4d0c11fa419e1e24da6994d18cdc5b89889292d78c288ab5
BLAKE2b-256 checksum
How to use checksums
3cc03b4240016875576c1a0bc567362e48c48778970380331da5e104939c45ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.10

Release files / baidu_sign-0.1.0-py3-none-any.whl

Download URL baidu_sign-0.1.0-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1954cf1c0a2eb7be374c01e0f73f182895273dfc300ed7fdf885960efcc33226
BLAKE2b-256 checksum
How to use checksums
f310145e7cabfd5ca6898e6e74e21c05e950921e2235335e18ad5bd2b5fba012
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.10

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page