Skip to main content

DeepL Translator CLI without API Key

Project description

deepl-cli

Release Package PyPI version Maintainability

image

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

Install

pip install deepl-cli

Docker Image

docker run -it --rm eggplanter/deepl-cli:0.1

Requirements

Usage

from CLI

$ deepl -h
usage: deepl [-h] (-f PATH | -s) [--fr FR] --to TO [-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)
  -v, --version         show program's version number and exit

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

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

from Package

from deepl import deepl

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

License

MIT

Author

Haruna(eggplants)

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

Uploaded Source

Built Distribution

deepl_cli-0.2.2-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: deepl_cli-0.2.2.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for deepl_cli-0.2.2.tar.gz
Algorithm Hash digest
SHA256 2f13726fa782a44955c2795b3202e6cf30cb9fffe87cb910020122385b130696
MD5 00d8ed1a5ed3c9b44417042233b4c5ac
BLAKE2b-256 ba19bfe3b584b0aa02f11d8be56cf8270ce0e1955e58fb5316ba191e5c6f97df

See more details on using hashes here.

File details

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

File metadata

  • Download URL: deepl_cli-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for deepl_cli-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f694a3b1fd3b932525c12aa2d46a643fc44d2cf7c3662b55d808c1edfbad1eff
MD5 9bf168551f3ef7c8b7b002e7192da9eb
BLAKE2b-256 c7d5b9e5e73a2318aeb0d76118de41fd6dc88445fca648ed0efacb54bef1946c

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