Skip to main content

Calculate sign string for google translate and baidu translate

Project description


Python 3637 package codecov PyPI versionstatus

Calculate sign string for google translate and baidu translate


pip install google-sign

python -c "from google_sign import google_sign; print(google_sign('test'))"


from google_sign import google_sign, js2py_sign, GTK

sign = google_sign('test')  #
print(sign)  # '476257.126138'

# for baidu translate text upto 30
sign = google_sign('test', GTK)  #
print(sign)  # '431039.159886'

# for baidu translate text longer than 30
sign = google_sign('test ' * 10)
print(sign)  # '403909.183028'

sign = google_sign('test ' * 10, GTK)
print(sign)  # ditto


  • Thanks to everyone whose code was used

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for google-sign, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size google_sign-0.0.2-py3-none-any.whl (5.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size google-sign-0.0.2.tar.gz (4.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page