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.7.0.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for deepl_cli-0.7.0.tar.gz
Algorithm Hash digest
SHA256 f96f3e19b4eb9933ec693e56a44fb176d57c0368dbb9ce0e93e1cb8ffc410e7c
MD5 c5a5a1939834ecfbca85cecf1c836f84
BLAKE2b-256 dcee481e5b699e01b2a0ccc69299ce5c861badda1fae712559bbd6ba4beb58e4

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for deepl_cli-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3b42358df8fe47c97e0483d3da0afd885113b16f15a3e3a3ee385fca6775b012
MD5 e51e5a7957d306666b4436b74579cb8b
BLAKE2b-256 b16b226c37cb16c899444405796030b58daec6dab5048aa04a29d576a0efd703

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