DeepL Translator CLI using Selenium
Project description
deepl-cli
- DeepL Translator CLI using Selenium
- Translate standard input into a specified language
- Under development on Ubuntu 20.04 LTS
Install
$ pip install deepl-cli
$ sudo apt install chromium-browser chromium-chromedriver python3-selenium -y
$ sudo apt update && sudo apt -f install -y
Requirements
- Python >= 3.8 (Because of
:=
, Walrus operator) - chromium-browser
- chromium-chromedriver
- python3-selenium
- selenium
- selenium@PyPI
Usage
$ deepl
SYNTAX:
$ (...) | deepl <from:lang>:<to:lang>
$ deepl <from:lang>:<to:lang> <<'EOS'
(...)
EOS
$ deepl <from:lang>:<to:lang> <<<"(...)"
USAGE:
$ echo Hello | deepl en:ja
$ deepl :ru <<'EOS' # :ru is equivalent of auto:ru
good morning!
good night.
EOS
$ deepl fr:zh <<<"Mademoiselle"
LANGUAGE CODES:
<from:lang>: {(empty)=auto, ja, en, de, fr, es, pt, it, nl, pl, ru, zh}
<to:lang>: {ja, en, de, fr, es, pt, it, nl, pl, ru, zh}
TIPS:
To use this, run:
$ sudo apt install chromium-browser chromium-chromedriver python3-selenium -y
$ sudo apt update && sudo apt -f install -y
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.3.tar.gz
(2.0 kB
view details)
Built Distribution
File details
Details for the file deepl-cli-0.0.3.tar.gz
.
File metadata
- Download URL: deepl-cli-0.0.3.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5b71472ff77acaf29e6c105133f4beb91afbd12a8786d60a70082d00257440d |
|
MD5 | aecde566acef195f0b2e874f62718e74 |
|
BLAKE2b-256 | 6150ef8de1f147ca06acb0b6e622ae869244735f21d21740043a3f3f3c5e9c24 |
File details
Details for the file deepl_cli-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: deepl_cli-0.0.3-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0550740ff47eb68007aa9b7ff2339e115b9790af9c7c162550c3336eac2d101b |
|
MD5 | cf6c60e5ccae281f43e9e43e1b126558 |
|
BLAKE2b-256 | 410250ba8f2a9ac1d0b57b8b41e768fc20293dcb3ba7a95f786e2b88ee33d57a |