Skip to main content

Etranslate

python License: MIT PyPI version

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

Metadata

Release files for etranslate 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for etranslate 0.1.0
File Size Uploaded
etranslate-0.1.0.tar.gz 4.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for etranslate 0.1.0
File Interpreter ABI Platform
etranslate-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.8 kB

Release files / etranslate-0.1.0.tar.gz

Download URL etranslate-0.1.0.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a3acc0176e908eb91bdc1e47eea2f77ecac3be25e8d77eaa6b9cae0326efef5c
BLAKE2b-256 checksum
How to use checksums
819e35e256dd1ea5785d2440f983d9af7a6e73f875fb3b080baece06c1588374
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.12

Release files / etranslate-0.1.0-py3-none-any.whl

Download URL etranslate-0.1.0-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f5b2150ad82c04815f4e2695b2c280024289377db6eb758781b84e9e164a0eac
BLAKE2b-256 checksum
How to use checksums
bbb88759b192c49d4b207eeccfa6bf87b640774766467ef55d60cf0035a24723
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.12

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

0.0.3

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page