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", 2) # 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", numberAlternative=0, 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.4.tar.gz
(4.4 kB
view details)
Built Distribution
File details
Details for the file PyDeepLX-1.0.4.tar.gz
.
File metadata
- Download URL: PyDeepLX-1.0.4.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8d962869dceff307213dab6ac4464fcdafc44ec6aacc95709ed8759eea3fd5e |
|
MD5 | b1586de1a5b76870d9f5a0b7bd7c0512 |
|
BLAKE2b-256 | a3bf7201a63d075bc5ba4566ecd24910c03d482d2926cd4794cff164079a0bd0 |
File details
Details for the file PyDeepLX-1.0.4-py3-none-any.whl
.
File metadata
- Download URL: PyDeepLX-1.0.4-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.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 881df4739f75d2fd72fd288d7489cf1948224a84d11462a57c054515cd3d4779 |
|
MD5 | 4a3649766662e55d85f0d8a9e41cc04f |
|
BLAKE2b-256 | 6ec661da0a231e226583863ca9e2571437d1230a87103dddd179ebf8596d162e |