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 hashes)
Built Distribution
Close
Hashes for easytranslator-2024.6.19-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfb15ea1c11c66cbee592b8acb183466b7b9ecf095bf67bde132ed692ab94a65 |
|
MD5 | 2741c472aeee8abba993bbc931fabc56 |
|
BLAKE2b-256 | 46adc0af344de7ce8d35d7a34d5a4047b7c3843ba0fc3a4c9385a77452dd0270 |