https://github.com/sedrubal/leocli
leocli - a console translation script for https://dict.leo.org
https://github.com/sedrubal/leocli
client language language-translation script translator
Last synced: 4 months ago
JSON representation
leocli - a console translation script for https://dict.leo.org
- Host: GitHub
- URL: https://github.com/sedrubal/leocli
- Owner: sedrubal
- License: mit
- Created: 2016-01-08T02:18:33.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2023-06-15T07:43:20.000Z (over 2 years ago)
- Last Synced: 2025-01-24T08:43:42.687Z (12 months ago)
- Topics: client, language, language-translation, script, translator
- Language: Python
- Homepage: https://pypi.org/project/leocli/
- Size: 112 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# leocli
A console translation script for https://dict.leo.org
[](https://landscape.io/github/sedrubal/leo/master)
`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
```sh
pipx install leocli
```
## Development install
```sh
poetry install
```
Usage
-----
```sh
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
-------
[MIT](COPYING)