Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
a simple command line tool for http://dict.leo.org
Python
branch: master
Failed to load latest commit information.
.gitignore setup.py
MANIFEST setup.py
leo
readme.md
setup.py

readme.md

leo-cli

leo-cli is a command line tool which can be used to translate words or phrases from several languages to german. It uses the open dictionary dict.leo.org. I wrote this because visiting their website, choosing the language, typing the word and clicking the submit button required several too many steps. I am a lazy person.

Installation

This tool requires beatiful soup and the wonderful requests library.

install beautifulsoup and requests

pip install beautifulsoup4 requests

install leo-cli

pip install leo-cli

update

There has been a layout change on leo.org so you might have to pip install leo-cli --upgrade

usage:

leo example

leo another example

leo fr bonne gout

Something went wrong with that request. Please try again.