https://github.com/OwO-Network/PyDeepLX
A Python package for unlimited DeepL translation
https://github.com/OwO-Network/PyDeepLX
deepl deeplx
Last synced: over 1 year ago
JSON representation
A Python package for unlimited DeepL translation
- Host: GitHub
- URL: https://github.com/OwO-Network/PyDeepLX
- Owner: OwO-Network
- License: mit
- Created: 2023-04-26T16:40:28.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-03-01T08:51:24.000Z (over 1 year ago)
- Last Synced: 2025-03-21T19:04:29.858Z (over 1 year ago)
- Topics: deepl, deeplx
- Language: Python
- Homepage:
- Size: 34.2 KB
- Stars: 197
- Watchers: 8
- Forks: 21
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# PyDeepLX
A Python package for unlimited DeepL translation
## API Version
[OwO-Network/DeepLX](https://github.com/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
```bash
pip install PyDeepLX
```
### Use in code
```python
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](https://github.com/missuo), Released under the [MIT](./LICENSE) License.