Skip to main content

DeepL Translator CLI without API Key

Project description

deepl-cli

Release Package Test PyPI version

Maintainability pre-commit.ci status

image

Note: This project works without DeepL API key. With DeepL API, use DeepLcom/deepl-python

Install

pip install deepl-cli

Usage

CLI

$ deepl -h
usage: deepl [-h] (-f PATH | -s) [--fr FR] --to TO [-t MS] [-v] [-V]

DeepL Translator CLI without API Key

optional arguments:
  -h, --help            show this help message and exit
  -f PATH, --file PATH  source text file to translate (default: None)
  -s, --stdin           read source text from stdin (default: False)
  --fr FR               input language (default: auto)
  --to TO               output language (default: None)
  -t MS, --timeout MS   timeout interval (default: 5000)
  -v, --verbose         make output verbose (default: False)
  -V, --version         show program's version number and exit

valid languages of `--fr`:
{'fi', 'cs', 'lv', 'nl', 'el', 'auto', 'ru', 'da', 'sv', 'it', 'uk', 'zh', 'ko', 'et', 'de', 'en', 'es', 'bg', 'lt', 'ja', 'pl', 'tr', 'id', 'sk', 'sl', 'hu', 'fr', 'ro', 'pt'}

valid languages of `--to`:
{'fi', 'cs', 'lv', 'nl', 'lt', 'ja', 'el', 'pl', 'ru', 'tr', 'da', 'sv', 'pt', 'id', 'it', 'sk', 'sl', 'hu', 'fr', 'uk', 'zh', 'ko', 'et', 'de', 'en', 'ro', 'es', 'bg'}

Package

from deepl import DeepLCLI

deepl = DeepLCLI("en", "ja")
deepl.translate("hello") #=> "こんにちわ"

If you use with asyncio, Use DeepLCLI.translate_async. See examples/async.py.

License

MIT

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

deepl_cli-0.8.0.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

deepl_cli-0.8.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file deepl_cli-0.8.0.tar.gz.

File metadata

  • Download URL: deepl_cli-0.8.0.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.1 Linux/6.5.0-1025-azure

File hashes

Hashes for deepl_cli-0.8.0.tar.gz
Algorithm Hash digest
SHA256 b626e729dc86954fef4c5dc91b55634447cf393d455b6f8361d7f4a20f5864cf
MD5 45ec44f18c120eb3357a0eb1fcb3a7b1
BLAKE2b-256 30a20585b188e543f49c34cf98fc47b8cf12cb2a55349cd97a9319fb19c415f6

See more details on using hashes here.

File details

Details for the file deepl_cli-0.8.0-py3-none-any.whl.

File metadata

  • Download URL: deepl_cli-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.1 Linux/6.5.0-1025-azure

File hashes

Hashes for deepl_cli-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d25c7dbec8bcecdc22b74fe1959efc9d7995aacf3cdf171cfd1d46dea850c3df
MD5 eaf083f2beb9436fdcd6d9863e9081e1
BLAKE2b-256 b93ad2557c0c7c1626bd21f16221a194ef23baf8d02ccccb5a0a664f959c9fe0

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