Skip to content

A Python package for unlimited DeepL translation and surplus functions

License

Notifications You must be signed in to change notification settings

MovieHolic-Plex/PyDeepLX2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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", 3) # Return List: ['Without a doubt', 'No doubt']

# Print the results
PyDeepLX.translate("毫无疑问的", "ZH", "EN", 3, 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.

About

A Python package for unlimited DeepL translation and surplus functions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%