Skip to main content

aDict dictionary format handling

Project description

aDict provides interface to reading and writing aDict dictionary format. Typical usage:

from adict import *                # data classes
from adict.parser import Parser    # text to data
from adict.printer import Printer  # data to text

with open('some file') as f:
    a = Article('Python')
    d1 = Definition('a kind of programming language')
    d2 = Definition('a kind of Snake')
    d2.links.append('hyperonym', 'Snake')
    a.content = [d1, d2]

    dictionary = Parser(f).parse()

with open('some other file', 'w') as f:

aDict format specification

…in English has not written yet. :)

However, I think, this format is pretty simple to understand by trial and error or by looking on this implementation.


Only me = arseniiv so far.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution (14.1 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page