Parse and query stardict dictionary files.
Project description
version number: 0.0.2
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
stargaze-0.0.2.tar.gz
(5.5 kB
view hashes)
Built Distribution
Close
Hashes for stargaze-0.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed72764b47b638684526e3cbd27f04c4a2415bb4b632ac9feaba45b976f2e033 |
|
MD5 | 14e70ad80bee110fcb2004b234773252 |
|
BLAKE2b-256 | cb012c202509c42955c29a0643538f4282bd4f4d78c55a5e1c1ff91b185003de |