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,<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.17.tar.gz
(5.0 kB
view details)
Built Distribution
File details
Details for the file deepl-cli-0.0.17.tar.gz
.
File metadata
- Download URL: deepl-cli-0.0.17.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3295f097661ffacd57829ba0087ced27e4aa3aebb0733a4965ced06a1e6d1f8 |
|
MD5 | 7a01a34d159c519740db7d2c93c71961 |
|
BLAKE2b-256 | 197215f97a2e0167694c9573317a5ae63cc6e0dfe4d8da6092b55a17a30671d8 |
File details
Details for the file deepl_cli-0.0.17-py3-none-any.whl
.
File metadata
- Download URL: deepl_cli-0.0.17-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c217b1cc41ef0cc269ca69c8aa5f144ecd0ea4c143a836af75c59066f7dc0a23 |
|
MD5 | 8a4999d29818e5ea2bc7eba1d7b5fdff |
|
BLAKE2b-256 | 4ffd9176d23ae3a207a921116bf0675b9ccee8d4d4362661606374efcbaecd68 |