Skip to main content

DeepL Translator CLI without API Key

Project description

deepl-cli

Release Package PyPI version Maintainability

MIT License

Downloads Downloads Downloads

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

Install

pip install deepl-cli

demo

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`:
{'ja', 'el', '', 'lv', 'es', 'ru', 'it', 'cs', 'lt', 'sk', 'bg', 'da', 'et', 'pl', 'sl', 'ro', 'pt', 'zh', 'hu', 'auto', 'sv', 'de', 'nl', 'en', 'fi', 'fr'}

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

from Package

from deepl import deepl

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

Lisence

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

Uploaded Source

Built Distribution

deepl_cli-0.2.0-py3-none-any.whl (6.6 kB view hashes)

Uploaded Python 3

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