https://github.com/versun/easytranslator
A Python package for reliable text translation using multiple free engines with automatic failover.
https://github.com/versun/easytranslator
Last synced: 4 months ago
JSON representation
A Python package for reliable text translation using multiple free engines with automatic failover.
- Host: GitHub
- URL: https://github.com/versun/easytranslator
- Owner: versun
- License: gpl-3.0
- Created: 2024-05-30T01:01:33.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-20T02:36:11.000Z (almost 2 years ago)
- Last Synced: 2025-12-01T20:14:54.482Z (6 months ago)
- Language: Python
- Homepage: https://pypi.org/project/easytranslator/
- Size: 55.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## 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
-----------
1. Install: `pip install easytranslator`
1. 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",
}
'''
```
1. More details can be found in the [main.py](/easytranslator/main.py) file.