aiodeepl 0.1.5

Creator: bradpython12

Last updated:

0 purchases

aiodeepl 0.1.5 Image
aiodeepl 0.1.5 Images

Languages

Categories

Add to Cart

Description:

aiodeepl 0.1.5

Asynchronous API for DeepL Translator
It also shipped with a simple command line interface.
Installation
pip install -U aiodeepl

API Usage
Documentation is yet complete. Apart from the following example, you can also refer to the __main__.py file for more examples.
import aiodeepl

async def main():
translator = aiohttp.Translator(api_key="123")
result = await translator.translate("Hello, World!", target_lang="DE")
print(result)

CLI Usage
aiodeepl --api-key 123 -t "Hello, World!" -d DE

You can save api_key in config file or input it interactively for security.
To translate a document, you can use the following command:
aiodeepl --api-key 123 -f README.pdf -d DE -o README_DE.pdf

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.