continuous-integration/drone/push Build is failing
Details
|
||
---|---|---|
eorg | ||
examples | ||
tests | ||
.drone.yml | ||
.gitignore | ||
.gitlab-ci.yml | ||
LICENSE | ||
readme.org | ||
requirements.txt | ||
setup.cfg | ||
setup.py |
readme.org
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)