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 ghcr.io/eggplants/deepl-cli <deepl-cli args>
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`:
{'hu', 'zh', 'ja', 'nl', 'pl', 'fr', 'ro', 'fi', 'el', 'lv', 'cs', 'et', 'sv', 'de', 'it', 'sk', 'ru', 'auto', 'es', 'sl', 'bg', 'lt', 'en', 'pt', 'da'}
valid languages of `--to`:
{'hu', 'zh', 'ja', 'nl', 'pl', 'fr', 'ro', 'fi', 'el', 'lv', 'cs', 'et', 'sv', 'de', 'it', 'sk', 'ru', 'es', 'sl', 'bg', 'lt', 'en', 'pt', 'da'}
from Package
from deepl import deepl
t = deepl.DeepLCLI("en", "ja")
t.translate("hello") #=> "こんにちわ"
License
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.3.tar.gz
(6.0 kB
view details)
Built Distribution
File details
Details for the file deepl_cli-0.2.3.tar.gz
.
File metadata
- Download URL: deepl_cli-0.2.3.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 746cde7668e094e52994f6db3c4d43278a62919e3c0f2038fb97d1fb56766230 |
|
MD5 | 8ad3249ec7d28187771e67de735a3c02 |
|
BLAKE2b-256 | f322e1fc41bb392b5a525abab1d0d5a9b12a797568c84ab166a715e0e633d648 |
File details
Details for the file deepl_cli-0.2.3-py3-none-any.whl
.
File metadata
- Download URL: deepl_cli-0.2.3-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dbf28a2985a4454756a93b4755da27f6b4c2aa44b60fb7ff9d2594721fcdadd0 |
|
MD5 | 2e7054d83d009b061c0a73dbc85867e5 |
|
BLAKE2b-256 | 28dde840ad8e677c42f25a432c239c08208111aa9f317949e77d2c51889cbe3a |