DeepL Translator CLI without API Key
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
pip install deepl-cli
Docker Image
docker run -it --rm eggplanter/deepl-cli:0.1
Requirements
Usage
from CLI
$ deepl -h
usage: deepl [-h] (-f PATH | -s) [--fr FR] --to TO [-v]
DeepL Translator CLI without API Key
optional arguments:
-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)
-v, --version show program's version number and exit
valid languages of `--fr`:
{'ja', 'el', '', 'lv', 'es', 'ru', 'it', 'cs', 'lt', 'sk', 'bg', 'da', 'et', 'pl', 'sl', 'ro', 'pt', 'zh', 'hu', 'auto', 'sv', 'de', 'nl', 'en', 'fi', 'fr'}
valid languages of `--to`:
{'ja', 'el', 'lv', 'es', 'ru', 'it', 'cs', 'lt', 'sk', 'bg', 'da', 'et', 'pl', 'sl', 'ro', 'pt', 'zh', 'hu', 'sv', 'de', 'nl', 'en', 'fi', 'fr'}
from Package
from deepl import deepl
t = deepl.DeepLCLI("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.2.0.tar.gz
(5.9 kB
view hashes)
Built Distribution
Close
Hashes for deepl_cli-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82c25813bd031b654473959387539e3c8d8d4c70657392b521de17fc6155f847 |
|
MD5 | f713b47b4fa7a7134b11feab45016896 |
|
BLAKE2b-256 | 672b3afa30d853e461dc91de2758ad7053df0269b3da9b4eb4777130d1591486 |