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.1.0.tar.gz
(5.4 kB
view hashes)
Built Distribution
Close
Hashes for deepl_cli-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f29f8e75c0b960612eb021a19cf24b7c58e7ed2f3d3f8c7d13f56de7df83fe36 |
|
MD5 | 937bcaf2fbda1147791645979df36dd4 |
|
BLAKE2b-256 | a9334545a2988a1139105941f6ac965e7aa41eb9f35cbb426a4e97905da9bc49 |