# 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
<a href="https://pypi.org/project/PyDeepLX/"><img src="https://img.shields.io/badge/Pypi-000000?style=for-the-badge&logo=pypi&logoColor=red" /></a>
## Author
**PyDeepLX** © [Vincent Young](https://github.com/missuo), Released under the [MIT](./LICENSE) License.<br>
Raw data
{
"_id": null,
"home_page": "https://github.com/OwO-Network/PyDeepLX",
"name": "PyDeepLX",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "missuo",
"author_email": "i@yyt.moe",
"download_url": "https://files.pythonhosted.org/packages/8a/41/35da8485b3966d93f68d5270f054247b4bf0db2082199c5a013e1067ea26/PyDeepLX-1.0.7.tar.gz",
"platform": "any",
"description": "# PyDeepLX\n\nA Python package for unlimited DeepL translation\n\n## API Version\n\n[OwO-Network/DeepLX](https://github.com/OwO-Network/DeepLX): Permanently free DeepL API written in Golang.\n\n## Description\n\nThis 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.\n\n## Usage\n\n### Install Package\n\n```bash\npip install PyDeepLX\n```\n\n### Use in code\n\n```python\nfrom PyDeepLX import PyDeepLX\n# By default, the source language is automatically recognized and translated into English without providing any alternative results.\nPyDeepLX.translate(\"\u4f60\u597d\u4e16\u754c\") # Return String\n\n# Specify the source and target languages\nPyDeepLX.translate(\"\u4f60\u597d\u4e16\u754c\", \"ZH\", \"EN\") # Return String\n\n# Need alternative results\nPyDeepLX.translate(\"\u6beb\u65e0\u7591\u95ee\u7684\", \"ZH\", \"EN\", 3) # Return List: ['Without a doubt', 'No doubt']\n\n# Print the results\nPyDeepLX.translate(\"\u6beb\u65e0\u7591\u95ee\u7684\", \"ZH\", \"EN\", 3, True)\n\n# Using proxy\nPyDeepLX.translate(text=\"\u6beb\u65e0\u7591\u95ee\u7684\", sourceLang=\"ZH\", targetLang=\"EN\", numberAlternative=0, printResult=False, proxies=\"socks5://127.0.0.1:7890\")\n```\n\n## PyPi\n\n<a href=\"https://pypi.org/project/PyDeepLX/\"><img src=\"https://img.shields.io/badge/Pypi-000000?style=for-the-badge&logo=pypi&logoColor=red\" /></a>\n\n## Author\n\n**PyDeepLX** \u00a9 [Vincent Young](https://github.com/missuo), Released under the [MIT](./LICENSE) License.<br>\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A Python package for unlimited DeepL translation",
"version": "1.0.7",
"project_urls": {
"Homepage": "https://github.com/OwO-Network/PyDeepLX"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "3bb750a7f80988a0d16f34e6e89bd827681e8f2dc9711c69806e6af2774c5dd0",
"md5": "010c9e17d0f19cb0a87a6ebf9a6fdf21",
"sha256": "4f82a25e6376c30d513e2cd4875a4158d41be0974efdf1a34540e9c25b876708"
},
"downloads": -1,
"filename": "PyDeepLX-1.0.7-py3-none-any.whl",
"has_sig": false,
"md5_digest": "010c9e17d0f19cb0a87a6ebf9a6fdf21",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 4846,
"upload_time": "2024-02-21T18:08:56",
"upload_time_iso_8601": "2024-02-21T18:08:56.275651Z",
"url": "https://files.pythonhosted.org/packages/3b/b7/50a7f80988a0d16f34e6e89bd827681e8f2dc9711c69806e6af2774c5dd0/PyDeepLX-1.0.7-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "8a4135da8485b3966d93f68d5270f054247b4bf0db2082199c5a013e1067ea26",
"md5": "4f9a9105a8d38bb82cec509025c1767e",
"sha256": "081a798b25ba8d431ae144387441ac8518f8e9e88db7d72376aafaad82e8a114"
},
"downloads": -1,
"filename": "PyDeepLX-1.0.7.tar.gz",
"has_sig": false,
"md5_digest": "4f9a9105a8d38bb82cec509025c1767e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4377,
"upload_time": "2024-02-21T18:08:58",
"upload_time_iso_8601": "2024-02-21T18:08:58.179012Z",
"url": "https://files.pythonhosted.org/packages/8a/41/35da8485b3966d93f68d5270f054247b4bf0db2082199c5a013e1067ea26/PyDeepLX-1.0.7.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-02-21 18:08:58",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "OwO-Network",
"github_project": "PyDeepLX",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "pydeeplx"
}