pyglot
A python library for interacting with the Google Translate API.
Note: This uses the translate v2 API
You will need a server key configured with Google, and a payment method on file, as there is no courtesy limit for translations.
Usage:
See the [Google Translate docs](https://developers.google.com/translate/v2/using_rest) for more details.
>>> from pyglot import Translator >>> lang = Translator(key='YOUR-KEY')# Translating text: >>> lang.translate(‘The quick brown fox jumped over the lazy dog’, target=’de’) GTranslation({u’translatedText’: u’Der schnelle braune Fuchs sprang xfcber den faulen Hund’, u’detectedSourceLanguage’: u’en’})
# Detecting the language of text: >>> lang.detect(‘The quick brown fox jumped over the lazy dog’) [GLanguage({u’isReliable’: False, u’confidence’: 0.79904306, u’language’: u’en’})]
# Getting a list of language codes, with names in english: >>> lang.languages(target=’en’) [GLanguage({u’name’: u’Afrikaans’, u’language’: u’af’}), GLanguage({u’name’: u’Albanian’, u’language’: u’sq’}), … ]
Metadata
Release files for pyglot 0.1.1
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 |
|---|---|---|---|---|
| pyglot-0.1.1.tar.gz | 2.4 kB | Without provenance | Details for pyglot-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyglot-0.1.1.macosx-10.4-intel.tar.gz | Details for pyglot-0.1.1.macosx-10.4-intel.tar.gz |
Total release size: 6.2 kB
Release files / pyglot-0.1.1.tar.gz
| Download URL | pyglot-0.1.1.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8bcc3bf7d6401d90ce8e4f804ba6dbb3422715f7c4727df420ae3d87f5995a44
|
|
BLAKE2b-256 checksum How to use checksums |
701db338bd6227f8b2c81abe14e32df2edcd7445395533e7ef5a45fbbbd7215f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pyglot-0.1.1.macosx-10.4-intel.tar.gz
| Download URL | pyglot-0.1.1.macosx-10.4-intel.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
680684eb87070af60fa82fcac62a61ea0d243c56b3bfe348cac6432d6e30861a
|
|
BLAKE2b-256 checksum How to use checksums |
4d9f6df5ddebcdc71d5dd93b0abb74d07b1e51a2c85b770d4c9d2c8aed5e62ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pyglot 0.1.1
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.