JMdcurses is a console Japanese-English dictionary with typeahead bidirectional queries and custom study lists (including flashcards). JMdcurses is written in Python, and features a curses interface and VI-like key bindings. For the words and translations JMdcurses uses the JMDict/EDICT and KANJIDIC2 dictionaries, property of the Electronic Dictionary Research and Development Group.
Up to date dictionary files must be separately downloaded. Two files are required, the Japanese-English dictionary JMdict_e.gz and the kanji dictionary kanjidic2.xml.gz. By default JMDcurses looks for these files in the working directory. The dictionaries are indexed and cached to a configurable location. See the man page for instructions.
xmltodict
to import the dictionariespython-romkan
to handle queries in romaji