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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for deepl_cli-0.5.0.tar.gz
Algorithm Hash digest
SHA256 bfaa154318b8f42110b0f15ddd75914659d9527c4c22a7b99b163e4b325fbd82
MD5 45e691a807a55485d3c33a6b5c7a6e9e
BLAKE2b-256 895644efc5317013d1c59e349a20f63c456c94dd4640697d6a10a7c9d75f0308

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for deepl_cli-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 743d44d5be3820e1cc44636cc1c11ca6b89c5ca77e975d23461815b1f9c6bb7a
MD5 4ecaf82d3e45783dcb8e2bb0a8ea1798
BLAKE2b-256 7efb86debbdd217a5f2e4368fd0a65910681117c04132858287783672ec50a69

See more details on using hashes here.

Supported by

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