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.18.tar.gz
(20.1 kB
view details)
Built Distribution
File details
Details for the file easytranslator-2024.6.18.tar.gz
.
File metadata
- Download URL: easytranslator-2024.6.18.tar.gz
- Upload date:
- Size: 20.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ccf087651e76b50a9780e6781654b078a6d1341d3b87700dfeafaefe18eeee6 |
|
MD5 | 1420c960358c8b1ff09d3a35a05631ae |
|
BLAKE2b-256 | aa16d898d3969f270c65d67155559cbac551be88225b5056cfa80d55b6a43469 |
File details
Details for the file easytranslator-2024.6.18-py3-none-any.whl
.
File metadata
- Download URL: easytranslator-2024.6.18-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 | c5ca43869aba05731dd1e326acc5ae136ce7e15884810518ce9fca15b632470f |
|
MD5 | dedb6fe59b37f511c698c16892f9e018 |
|
BLAKE2b-256 | 54239c73de5c32a5b6c9ed9e8c38b642165fc231a8f7bc7e3caa46b2c931a873 |