Skip to main content

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

MIT

Project details


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 hashes)

Uploaded Source

Built Distribution

leocli-3.4.4-py3-none-any.whl (9.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page