DeepL Translator CLI using Selenium
Project description
deepl-cli
- 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
Install
# python >=3.5,<3.10
pip install deepl-cli
Docker Image
# TRY
docker run -it --rm eggplanter/deepl-cli:0.1
Requirements
Usage
from CLI
$ deepl
SYNTAX:
$ ... | deepl <from:lang>:<to:lang>
$ deepl <from:lang>:<to:lang> << 'EOS'
...
EOS
$ deepl <from:lang>:<to:lang> <<< "..."
$ deepl <from:lang>:<to:lang> < <filepath>
USAGE:
$ echo Hello | deepl en:ja
$ deepl :ru << 'EOS' # :ru is equivalent of auto:ru
good morning!
good night.
EOS
$ deepl fr:zh <<< "Mademoiselle"
$ deepl de:pl < README_de.md
LANGUAGE CODES:
<from:lang>: {auto it et nl el sv es sk sl cs da
de hu fi fr bg pl pt lv lt ro ru en zh ja}
<to:lang>: {it et nl el sv es sk sl cs da
de hu fi fr bg pl pt lv lt ro ru en zh ja}
from Package
from deepl import deepl
t = deepl.DeepLCLI(langs=('en', 'ja'))
t.translate('hello') #=> 'こんにちわ'
Lisence
MIT
Author
Haruna(eggplants)
Project details
Release history Release notifications | RSS feed
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.0.18.tar.gz
(5.1 kB
view hashes)
Built Distribution
Close
Hashes for deepl_cli-0.0.18-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1c696038fe47cd43501889de2f33ee2bee7dbd738e19ea6707d8848dfa06bae |
|
MD5 | 8e8c3c9066ac8ee985d03f2dc7067f87 |
|
BLAKE2b-256 | 9bb016e088eb5e1161ff089b778789fe85d2ab4652ae4918fdc4ead419ce231b |