mdict-py

Python API for mdict IO (MDX and MDD).


Keywords
mdict, mdd, mdx
License
MIT
Install
pip install mdict-py==0.1a4

Documentation

mdict.py

Python API for mdict IO (MDX and MDD). NOTE: For Python3 only!

Install

pip install mdict-py

Usage

The API would be changed soon.

from mdict import MDD, MDX

mdx = MDX('example.mdx')

for item in mdx.items():
    headword, entry = item
    print(headword.decode('utf-8'))

mdd = MDD('example.mdd')

for item in mdd.items():
    filename, binary_contents = item
    print(filename)