Simple org document parser


Licenses
GPL-3.0/CERN-OHL-P-2.0
Install
pip install eorg==0.84

Documentation

Eorg

Simple parser for org documents similar to markdown but far more powerful. The current parser was a bit limited so this is an attempt to make something simpler to use and extend.

This is not currently meant for generating org files only for reading data from them for scripts.

Install

pip install eorg

Developing

python setup.py develop

Examples

Generating plain html

Simple raw html generation

import os
from eorg.parser import parse
from eorg.generate import html

with open(os.path.abspath('../../tests/fixtures/test.org'), 'r') as fp:
    doc = parse(fp)
    print(html(doc).read())

Simple raw html generation

import os
from eorg.parser import parse
from eorg.generate import html

with open(os.path.abspath('../../tests/fixtures/test.org'), 'r') as fp:
    doc = parse(fp)
    for row in doc.filter('src'):
        print(row.token)