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.1.tar.gz
(6.2 kB
view hashes)
Built Distribution
Close
Hashes for deepl_cli-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2e2f3cdfdebcc035909ea7b3e92444e5a0f6115fb385d0e3a88f37331cfad6e |
|
MD5 | d9cdc1a21e41ede42fa5e3e638738a38 |
|
BLAKE2b-256 | 6571a5b70f9d6a72e487975ee15dd9cc2bb56cdb46a540bc331a2bc23e66aad9 |