Skip to main content

DeepL Translator CLI without API Key

Project description

deepl-cli

Release Package 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 deepl

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

If you use with asyncio, 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.4.0.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

deepl_cli-0.4.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: deepl_cli-0.4.0.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.0 CPython/3.11.0 Linux/5.15.0-1034-azure

File hashes

Hashes for deepl_cli-0.4.0.tar.gz
Algorithm Hash digest
SHA256 cbc21e59919b13b55f810e8a98e2d1ebd3ab2ab80b577de90ebb65a80976f2b1
MD5 30c350d5ed595b9ed1430311eec205c2
BLAKE2b-256 ca13c44aa02bf472d98fca9853838d62c029dea7dc6e0111e87549cb7bb08f2f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: deepl_cli-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.0 CPython/3.11.0 Linux/5.15.0-1034-azure

File hashes

Hashes for deepl_cli-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 243d2e589cef6ee85a71b9b14f87d38ad187a73ad384ff6a96cb3c716dece8e4
MD5 c3e54977a09a97eb5dd59cd0f3988091
BLAKE2b-256 8f643a6b189e794ea1052ce3824625a133ab1030f2be8ba8e01612e8d14f9111

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