google-sign
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
Metadata
Release files for google-sign 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| google-sign-0.0.2.tar.gz | 4.4 kB | Without provenance | Details for google-sign-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| google_sign-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for google_sign-0.0.2-py3-none-any.whl |
Total release size: 10.0 kB
Release files / google-sign-0.0.2.tar.gz
| Download URL | google-sign-0.0.2.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cd9d826a627eeb138b51e4e0d8187cd2a6e3092ecbf85a22f7ecf3a9cd6c499f
|
|
BLAKE2b-256 checksum How to use checksums |
20ddabc19cfb1a54980f05aaf723c1afcda05f834bfc7a5feecfe80648d96761
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / google_sign-0.0.2-py3-none-any.whl
| Download URL | google_sign-0.0.2-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
75bdab5ac55a92c96ab49507f152bb41c3127325a62fed455220e9cd10118148
|
|
BLAKE2b-256 checksum How to use checksums |
1ba2aff139d61358033e095dfa098ea14497d468eed38ef9dda9d136d340113c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for google-sign 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.