- DeepL Translator CLI using Pyppeteer
- Translate standard input into a specified language
Note: This project works without DeepL API key. With DeepL API, use DeepLcom/deepl-python
pip install deepl-cli
docker run -it --rm ghcr.io/eggplants/deepl-cli <deepl-cli args>
$ 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 deepl import deepl
t = deepl.DeepLCLI("en", "ja")
t.translate("hello") #=> "こんにちわ"
MIT
Haruna(eggplants)