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
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 | |
|---|---|---|---|
| pygtranslate-0.0.1.tar.gz | 4.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pygtranslate-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
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 |