A Python package for unlimited DeepL translation
Project description
PyDeepLX
A Python package for unlimited DeepL translation
API Version
OwO-Network/DeepLX: Permanently free DeepL API written in Golang.
Description
This is a Python package for DeepL translation, I didn't limit the number of translations in the code, if there is a 429
error, it means your IP has been blocked by DeepL temporarily, please don't request it frequently in a short time.
Usage
Install Package
pip install PyDeepLX
Use in code
from PyDeepLX import PyDeepLX
# By default, the source language is automatically recognized and translated into English without providing any alternative results.
PyDeepLX.translate("你好世界") # Return String
# Specify the source and target languages
PyDeepLX.translate("你好世界", "ZH", "EN") # Return String
# Need alternative results
PyDeepLX.translate("毫无疑问的", "ZH", "EN", True) # Return List: ['Without a doubt', 'No doubt']
# Print the results
PyDeepLX.translate("毫无疑问的", "ZH", "EN", True, True)
# Using proxy
PyDeepLX.translate(text="毫无疑问的", sourceLang="ZH", targetLang="EN", needAlternative=False, printResult=False, proxies="socks5://127.0.0.1:7890")
PyPi
Author
PyDeepLX © Vincent Young, Released under the MIT License.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
PyDeepLX-1.0.3.tar.gz
(4.4 kB
view details)
Built Distribution
File details
Details for the file PyDeepLX-1.0.3.tar.gz
.
File metadata
- Download URL: PyDeepLX-1.0.3.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c528dfc01b333394dd1383ee49e1f3128b3c881b4a6ecc63d37640d5f5c78f0d |
|
MD5 | cc4a9ba1bbd6776569fd62226be3393a |
|
BLAKE2b-256 | b579cb31871b415031b3e4de845de8db24444a5d958f6d7ba7a2cde1541c18b9 |
File details
Details for the file PyDeepLX-1.0.3-py3-none-any.whl
.
File metadata
- Download URL: PyDeepLX-1.0.3-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | db41015c37ad3dc79a8dc1313aa39b7dedb382b4a969d916d524deb47a869597 |
|
MD5 | 75492c68a4c280a9958ca0e02da21d35 |
|
BLAKE2b-256 | 99da8566dd7437ff0008825f7554ea578f8ff122a827b405fa404492e4e15e36 |