Free DeepL translation with Glossaries
Project description
DeepL Ex: Unlimited Free DeepL Translation
:warning: This project is currently under the development.
This project is inspired by Vincent Young's DeepLX.
But the project does not support Glossaries, thus I made this with DeepL's new internal APIs.
Prerequisites
pip install aiohttp brotli
Usage
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
deeplex-0.0.1.tar.gz
(4.1 kB
view details)
Built Distribution
File details
Details for the file deeplex-0.0.1.tar.gz
.
File metadata
- Download URL: deeplex-0.0.1.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0035b88bf69cd89007f1132bd91b2698d37d836267167c2554bf116301717a72 |
|
MD5 | cd162715f0a9a8c10327aa1af75c1fc2 |
|
BLAKE2b-256 | 7b3336cbae6e2984f7b378ea82ddd61c23789ed53676ee7cf833bb672000d6a0 |
File details
Details for the file deeplex-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: deeplex-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f23adade2e2583ca77ddffe9dc449e9bcc4ae6806d49ed2cc8e18a9a47f0aec8 |
|
MD5 | a31e9c503671d842e900c2038aa85224 |
|
BLAKE2b-256 | 1ffc48309af9ac19e4929df330ae2cd239152d250362003e92e7cf3a1587b159 |