# DeepL Ex: Unlimited Free DeepL Translation
> :warning: This project is currently under the development.
This project is inspired by [Vincent Young](https://github.com/missuo)'s [DeepLX](https://github.com/OwO-Network/DeepLX).
But the project does not support Glossaries, thus I made this with DeepL's new internal APIs.
## Prerequisites
```
pip install aiohttp brotli
```
## Usage
```python
import asyncio
import deeplex
async def main():
texts = await deeplex.translate(
'Hello World, John!', 'EN', 'DE',
glossaries={'John': 'Python'},
)
# ['Hallo Welt, Python!', 'Hallo Python, Welt!', 'Hallo, Python!', 'Hallo Python!']
print(texts)
if __name__ == '__main__':
event_loop = asyncio.get_event_loop()
event_loop.run_until_complete(main())
event_loop.close()
```
# License
Licensed under the [MIT license](https://github.com/OrigamiDream/deeplex/blob/main/LICENSE).
Raw data
{
"_id": null,
"home_page": "https://github.com/OrigamiDream/deeplex.git",
"name": "deeplex",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6.0",
"maintainer_email": null,
"keywords": "machine translation, deepl, free deepl, google translate, free translate, translation, multilingual, mling",
"author": "OrigamiDream",
"author_email": "hello@origamidream.me",
"download_url": "https://files.pythonhosted.org/packages/7b/33/36cbae6e2984f7b378ea82ddd61c23789ed53676ee7cf833bb672000d6a0/deeplex-0.0.1.tar.gz",
"platform": "any",
"description": "# DeepL Ex: Unlimited Free DeepL Translation\n\n> :warning: This project is currently under the development.\n\nThis project is inspired by [Vincent Young](https://github.com/missuo)'s [DeepLX](https://github.com/OwO-Network/DeepLX).\n\nBut the project does not support Glossaries, thus I made this with DeepL's new internal APIs.\n\n## Prerequisites\n```\npip install aiohttp brotli\n```\n\n## Usage\n\n```python\nimport asyncio\nimport deeplex\n\n\nasync def main():\n texts = await deeplex.translate(\n 'Hello World, John!', 'EN', 'DE',\n glossaries={'John': 'Python'},\n )\n\n # ['Hallo Welt, Python!', 'Hallo Python, Welt!', 'Hallo, Python!', 'Hallo Python!']\n print(texts)\n\n\nif __name__ == '__main__':\n event_loop = asyncio.get_event_loop()\n event_loop.run_until_complete(main())\n event_loop.close()\n```\n\n# License\n\nLicensed under the [MIT license](https://github.com/OrigamiDream/deeplex/blob/main/LICENSE).\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Free DeepL translation with Glossaries",
"version": "0.0.1",
"project_urls": {
"Homepage": "https://github.com/OrigamiDream/deeplex.git"
},
"split_keywords": [
"machine translation",
" deepl",
" free deepl",
" google translate",
" free translate",
" translation",
" multilingual",
" mling"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "1ffc48309af9ac19e4929df330ae2cd239152d250362003e92e7cf3a1587b159",
"md5": "a31e9c503671d842e900c2038aa85224",
"sha256": "f23adade2e2583ca77ddffe9dc449e9bcc4ae6806d49ed2cc8e18a9a47f0aec8"
},
"downloads": -1,
"filename": "deeplex-0.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "a31e9c503671d842e900c2038aa85224",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6.0",
"size": 4427,
"upload_time": "2024-04-19T04:30:53",
"upload_time_iso_8601": "2024-04-19T04:30:53.029527Z",
"url": "https://files.pythonhosted.org/packages/1f/fc/48309af9ac19e4929df330ae2cd239152d250362003e92e7cf3a1587b159/deeplex-0.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "7b3336cbae6e2984f7b378ea82ddd61c23789ed53676ee7cf833bb672000d6a0",
"md5": "cd162715f0a9a8c10327aa1af75c1fc2",
"sha256": "0035b88bf69cd89007f1132bd91b2698d37d836267167c2554bf116301717a72"
},
"downloads": -1,
"filename": "deeplex-0.0.1.tar.gz",
"has_sig": false,
"md5_digest": "cd162715f0a9a8c10327aa1af75c1fc2",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6.0",
"size": 4102,
"upload_time": "2024-04-19T04:30:54",
"upload_time_iso_8601": "2024-04-19T04:30:54.234415Z",
"url": "https://files.pythonhosted.org/packages/7b/33/36cbae6e2984f7b378ea82ddd61c23789ed53676ee7cf833bb672000d6a0/deeplex-0.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-04-19 04:30:54",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "OrigamiDream",
"github_project": "deeplex",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "deeplex"
}