stargaze

Parse and query stardict dictionary files.


Keywords
dictionary, stardict
License
MIT
Install
pip install stargaze==0.0.2

Documentation

stargaze

version number: 0.0.2

Build Say thanks!

Overview

Looks up for words in a stardict dictionary.

Installation / Usage

To install use pip:

$ pip install stargaze

Or clone the repo:

$ git clone https://github.com/codito/stargaze.git
$ python setup.py install

Example

>>> import stargaze
>>> d = stargaze.Dictionary("./docs/words")
>>> d.lookup("word1")
'word1_defn'
>>> # let's lookup for a synonym
... d.lookup("word1_syn1")
'word1_defn'

License

MIT

Contributing

Pull requests are most welcome.