DeepL Translator CLI using Selenium
Project description
deepl-cli
- DeepL Translator CLI using Pyppeteer
- Translate standard input into a specified language
Install
# python>=3.5
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.15.tar.gz
(4.4 kB
view hashes)
Built Distribution
Close
Hashes for deepl_cli-0.0.15-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05365468fb3139607b88ce24a4de2e89a3032914d0a27d2a3a9fc884ea82b8ed |
|
MD5 | f6cb58b8cd39b24bb55c075b6eb7afdf |
|
BLAKE2b-256 | 340c3b65bb7eb6dc0561f4760047314623c3dc57a3c42304c55b1da755a50480 |