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.20.tar.gz
(20.7 kB
view details)
Built Distribution
File details
Details for the file easytranslator-2024.6.20.tar.gz
.
File metadata
- Download URL: easytranslator-2024.6.20.tar.gz
- Upload date:
- Size: 20.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84a5225cf415627e4794cc7e96b0239bed60a3f63de1f5d48aa82c2ea2dd1d73 |
|
MD5 | 2f1038cf640518176b0120035ed1fa99 |
|
BLAKE2b-256 | f787df07cfbb7d87031a1513a9764eff03d6c4b8a630f3aac6a4a9f571a2cd48 |
File details
Details for the file easytranslator-2024.6.20-py3-none-any.whl
.
File metadata
- Download URL: easytranslator-2024.6.20-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 | b92c951f36b135129f46806a64eefe48a6e69b1aab83907b99ea03b11d5f6481 |
|
MD5 | 3bd4d2486138c2948c373ec14fa007a4 |
|
BLAKE2b-256 | 82bbff5e61ee9bb5a393aea640d7ef9b2b9636cb3e6b086267ff20fce3ba8ef2 |