DeepL Translator CLI without API Key
Project description
deepl-cli
- DeepL Translator CLI using playwright-python
Note: This project works without DeepL API key. With DeepL API, use DeepLcom/deepl-python
Install
pip install deepl-cli
Usage
from CLI
$ deepl -h
usage: deepl [-h] (-f PATH | -s) [--fr FR] --to TO [-t MS] [-v] [-V]
DeepL Translator CLI without API Key
options:
-h, --help show this help message and exit
-f PATH, --file PATH source text file to translate (default: None)
-s, --stdin read source text from stdin (default: False)
--fr FR input language (default: auto)
--to TO output language (default: None)
-t MS, --timeout MS timeout interval (default: 5000)
-v, --verbose make output verbose (default: False)
-V, --version show program's version number and exit
valid languages of `--fr`:
{'fi', 'de', 'lv', 'sl', 'ru', 'fr', 'id', 'lt', 'ro', 'ukzh', 'hu', 'el', 'et', 'en', 'pl', 'auto', 'es', 'bg', 'it', 'tr', 'cs', 'sv', 'da', 'ja', 'nl', 'pt', 'sk'}
valid languages of `--to`:
{'fi', 'de', 'lv', 'sl', 'ru', 'fr', 'id', 'lt', 'ro', 'ukzh', 'hu', 'el', 'et', 'en', 'pl', 'es', 'bg', 'it', 'tr', 'cs', 'sv', 'da', 'ja', 'nl', 'pt', 'sk'}
from Package
from deepl import deepl
t = deepl.DeepLCLI("en", "ja")
t.translate("hello") #=> "こんにちわ"
License
MIT
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.3.0.tar.gz
(5.6 kB
view hashes)
Built Distribution
Close
Hashes for deepl_cli-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 179e46fad82ffdace9d4f47694dfef0866d3915a3d0d4f24ab8c77d8467f8a95 |
|
MD5 | bb077c2e0952c85e7f1a8b0028da982b |
|
BLAKE2b-256 | f5835fef116b157ddcaca203da311a63e0583f7cf1c46401e548c80a907770c6 |