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
Metadata
Release files for aiodeepl 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aiodeepl-0.1.5.tar.gz | 9.7 kB | Without provenance | Details for aiodeepl-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aiodeepl-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for aiodeepl-0.1.5-py3-none-any.whl |
Total release size: 19.5 kB
Release files / aiodeepl-0.1.5.tar.gz
| Download URL | aiodeepl-0.1.5.tar.gz |
|---|---|
| Size | 9.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3c9bf1ea95d61e8e3d4303303579ac9bb731252aad38a847657b433fee27176e
|
|
BLAKE2b-256 checksum How to use checksums |
374ddc2da95e36c4b7d656c1dbb27282507806a0f87336a5cabab6b2141d21a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.12.2 Linux/6.5.0-21-generic
|
Release files / aiodeepl-0.1.5-py3-none-any.whl
| Download URL | aiodeepl-0.1.5-py3-none-any.whl |
|---|---|
| Size | 9.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b066c3e16faa1a59b59f03e0e266c8ae12a367ae6d2b2453b09c2deaee450af8
|
|
BLAKE2b-256 checksum How to use checksums |
6804833647527af63848b52b0f854b595b41c96bee5be16f62fe00cd9bc7d6d1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.12.2 Linux/6.5.0-21-generic
|
Security for aiodeepl 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.