Skip to main content

Calculate sign string for google translate and baidu translate

Project description

google-sign

Python 3637 package codecov PyPI versionstatus

Calculate sign string for google translate and baidu translate

Installation

pip install google-sign

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

Usage

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

Acknowledgments

  • 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.

Source Distribution

google-sign-0.0.2.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

google_sign-0.0.2-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file google-sign-0.0.2.tar.gz.

File metadata

  • Download URL: google-sign-0.0.2.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for google-sign-0.0.2.tar.gz
Algorithm Hash digest
SHA256 cd9d826a627eeb138b51e4e0d8187cd2a6e3092ecbf85a22f7ecf3a9cd6c499f
MD5 a229b9e89abc819ecaf3903a4af322c5
BLAKE2b-256 20ddabc19cfb1a54980f05aaf723c1afcda05f834bfc7a5feecfe80648d96761

See more details on using hashes here.

File details

Details for the file google_sign-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: google_sign-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for google_sign-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 75bdab5ac55a92c96ab49507f152bb41c3127325a62fed455220e9cd10118148
MD5 4bde44cf5ef59be7778540c1f814cb5f
BLAKE2b-256 1ba2aff139d61358033e095dfa098ea14497d468eed38ef9dda9d136d340113c

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