A command line translation tool for https://dict.leo.org/
Project description
leocli
A command line translation tool for https://dict.leo.org
leocli
is a python script that queries dict.leo.org
for one or more given keywords
and prints their meanings and translations to stdout
Installation
pipx install leocli
Development install
poetry install
Usage
poetry shell
leo --help
usage: leo [-h] [-l lang] [-e] [--pager pagercmd] [--version] word [word ...]
leocli - a console translation script for https://dict.leo.org/ .
positional arguments:
word the words you want to translate
optional arguments:
-h, --help show this help message and exit
-l lang, --lang lang the languagecode to translate to or from en, fr, es,
it, ch, ru, pt, pl
-e, --emojis Use emoji language flags for languages. Your terminal
font must support this feature.
--pager pagercmd The pager command to use. Default: 'less -R -I -S -X'.
Use `--pager=` to disable the pager.
--version show program's version number and exit
License
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
leocli-3.4.4.tar.gz
(6.8 kB
view details)
Built Distribution
File details
Details for the file leocli-3.4.4.tar.gz
.
File metadata
- Download URL: leocli-3.4.4.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.6 Linux/6.1.61-hardened1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36f78dcc6c6583b91229673551e1bed1541f610a83eb0ebec98eca13209f3344 |
|
MD5 | c1275601912f8d4fdd3ef5990080a05e |
|
BLAKE2b-256 | 83d66d7483eb37f04c3129fe45b0a2db9ff3aa5fdd32b540a660fe863ed8674a |
File details
Details for the file leocli-3.4.4-py3-none-any.whl
.
File metadata
- Download URL: leocli-3.4.4-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.6 Linux/6.1.61-hardened1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a4b15648ae9484948588a5f0069cc04f3c72cee46cfcdb1999abefff940a201 |
|
MD5 | f4e45ae5b24caeba0b2ba325b7159de5 |
|
BLAKE2b-256 | 374eb53c9f5a0f84318d67a6f383d35b4fc8edd442a192f3acc31ccfe1d82cd2 |