etranslate is a free and unlimited python library for translate your texts
Project description
Etranslate
Etranslate is a free and unlimited python library for translating your texts
Install it
#to install:
pip install etranslate
# to upgrade:
pip install etranslate -U
Features
- Fast and reliable - it uses
Google translate
- Auto language detection
- Bulk translations
Use it
The quality from this service is not as good as web google translate. There is nothing we can do about it.
It's unclear whether your ip will be blocked if you relentlessly use the service. Please feedback should you find out any information.
from etranslate import translate
# Translate to English by default
translate("Hallo Welt!") # 'Hello world!'
translate("Hello world!", to="fa") # '!سلام دنیا'
translate("Hello world!", to="de") # 'Hallo Welt!'
translate("Hello world!", src="en", to="fa") # '!سلام دنیا'
# Detect the language of texts
detect_laguage("Hello world!") # 'en'
detect_laguage("سلام دنیا") # 'fa'
Requirements
Python >=3.7
requests
Disclaimer
Etranslate
makes use of a translate interface floating around the net and is for study and research purpose only.
The interface may become invalid without notice, which would render Etranslate
completely useless.
Licenses
This project is licensed under the MIT License - see the LICENSE file for details
Change log
0.0.1 (23/8/2021)
-------------------
- First Release
0.0.2 (23/8/2021)
-------------------
- fix some problems
0.0.3 (23/8/2021)
-------------------
- fix README.md
0.1.0 (29/8/2024)
-------------------
- refactor base-code
- add detect_language method
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
Built Distribution
File details
Details for the file etranslate-0.1.0.tar.gz
.
File metadata
- Download URL: etranslate-0.1.0.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3acc0176e908eb91bdc1e47eea2f77ecac3be25e8d77eaa6b9cae0326efef5c |
|
MD5 | a988650c0b39fa634d2533e64a5231f4 |
|
BLAKE2b-256 | 819e35e256dd1ea5785d2440f983d9af7a6e73f875fb3b080baece06c1588374 |
File details
Details for the file etranslate-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: etranslate-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5b2150ad82c04815f4e2695b2c280024289377db6eb758781b84e9e164a0eac |
|
MD5 | 26009213471d89bcd748397a7e2626f4 |
|
BLAKE2b-256 | bbb88759b192c49d4b207eeccfa6bf87b640774766467ef55d60cf0035a24723 |