gtranslate-python
Pythonic interface with CLI to Google's free Translate API.
Features:
- Supports request splitting for large requests (>4000 chars default) to circumvent
GETchar limit. Requests will be split on end of sentences preferably to preserve quality of translation. - Proxy support via
HTTPS_PROXYenvironment variable. - Agent spoofing.
- Uses google's auto language detection where possible by default if not explicitly specified.
Usage:
client = Translator()
client.translate('Bonjour', from_lang='fr', to_lang='en')
>>> 'Hello'
Command Line tool:
python translator.py -t en -f fr -q "Bonjour"
>>> Hello
License
This project is licensed under the MIT License - see the LICENSE.md file for details
Metadata
Release files for pygtranslate 0.0.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 |
|---|---|---|---|---|
| pygtranslate-0.0.1.tar.gz | 4.1 kB | Without provenance | Details for pygtranslate-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pygtranslate-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for pygtranslate-0.0.1-py3-none-any.whl |
Total release size: 8.7 kB
Release files / pygtranslate-0.0.1.tar.gz
| Download URL | pygtranslate-0.0.1.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7999457aaa6db6d3c8ba1672685213856df6aa908a5c2a2b044f7cfc7b8218e1
|
|
BLAKE2b-256 checksum How to use checksums |
52b6f7d197bf5f76c31bb59c8806773fe23f293e2e11f8dd1d1fe6914daeeba7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pygtranslate-0.0.1-py3-none-any.whl
| Download URL | pygtranslate-0.0.1-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8cc8c1c79bfa3de87ff08f1abc19a1445e34a1bbc3a4698e0055c53b38df5266
|
|
BLAKE2b-256 checksum How to use checksums |
210450c96e2c73dbd01b546efa3bace25dc0cedfb4a6dea914270f3c52da61aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pygtranslate 0.0.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.