Skip to main content

Async API for DeepL Translator

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aiodeepl-0.1.5.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

aiodeepl-0.1.5-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file aiodeepl-0.1.5.tar.gz.

File metadata

  • Download URL: aiodeepl-0.1.5.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.2 Linux/6.5.0-21-generic

File hashes

Hashes for aiodeepl-0.1.5.tar.gz
Algorithm Hash digest
SHA256 3c9bf1ea95d61e8e3d4303303579ac9bb731252aad38a847657b433fee27176e
MD5 fd5f1018d0db3fce0f7786697d7d7000
BLAKE2b-256 374ddc2da95e36c4b7d656c1dbb27282507806a0f87336a5cabab6b2141d21a1

See more details on using hashes here.

File details

Details for the file aiodeepl-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: aiodeepl-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.2 Linux/6.5.0-21-generic

File hashes

Hashes for aiodeepl-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b066c3e16faa1a59b59f03e0e266c8ae12a367ae6d2b2453b09c2deaee450af8
MD5 b71453cd76fca785bd136a54cf08aad7
BLAKE2b-256 6804833647527af63848b52b0f854b595b41c96bee5be16f62fe00cd9bc7d6d1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page