A Python package for reliable text translation using multiple free engines with automatic failover.
Project description
easytranslator
A Python package for reliable text translation using multiple free engines with automatic failover.
Currently, it supports the following languages:
- English
- Chinese Simplified
- Chinese Traditional
- Russian
- Japanese
- Korean
- Czech
- Danish
- German
- Spanish
- French
- Indonesian
- Italian
- Hungarian
- Dutch
- Polish
- Portuguese
- Swedish
- Turkish
Installation
- Install:
pip install easytranslator
- Translate a text:
from easytranslator import EasyTranslator et = EasyTranslator() results = et.translate( text="Hello, world!", dest_lang="Chinese Simplified", src_lang="auto", proxies=[]) print(results) ''' { "translated_text": "你好,世界!", "status": "success", } '''
- More details can be found in the main.py file.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
easytranslator-2024.6.19.tar.gz
(20.5 kB
view details)
Built Distribution
File details
Details for the file easytranslator-2024.6.19.tar.gz
.
File metadata
- Download URL: easytranslator-2024.6.19.tar.gz
- Upload date:
- Size: 20.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c1b34b0f638d27d10d5a31db3901ea96e084db80d5929ebaf8cbf68f3bed8ed |
|
MD5 | cf76d713d8a386fdb2021462c5417701 |
|
BLAKE2b-256 | bf4cd645a7728c51871c32a9d2b6e9783c5aa5951a44b3ae6ff4db0a396f8e8e |
File details
Details for the file easytranslator-2024.6.19-py3-none-any.whl
.
File metadata
- Download URL: easytranslator-2024.6.19-py3-none-any.whl
- Upload date:
- Size: 19.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfb15ea1c11c66cbee592b8acb183466b7b9ecf095bf67bde132ed692ab94a65 |
|
MD5 | 2741c472aeee8abba993bbc931fabc56 |
|
BLAKE2b-256 | 46adc0af344de7ce8d35d7a34d5a4047b7c3843ba0fc3a4c9385a77452dd0270 |