API Blueprint Python parser
Switch branches/tags
Nothing to show
Clone or download
vmarkovtsev Merge pull request #2 from morenopc/fix/python3.5-multiple-bases-inhe…
…riting-OrderedDict-defaultddict

Fix python 3.5 multiple bases inheriting from OrderedDict defaultddict
Latest commit c4e949b Jun 23, 2016

README.md

plueprint

API Blueprint parser written in Python. It uses Markdown well-known package to do initial DOM parsing.

Installing

pip install plueprint

Using

As a library:

from markdown import Markdown
m = Markdown(extensions=["plueprint"])
m.set_output_format("apiblueprint")
api = m.convert("""
FORMAT: 1A

# The Simplest API
This is one of the simplest APIs written in the **API Blueprint**.

# /message

## GET
+ Response 200 (text/plain)

        Hello World!
""")
print(api)

As a script:

python -m plueprint "Real World API.md"
python -m plueprint "Real World API.md" -o "api.pickle"

Notes

To suppress warnings about parsed documents, set plueprint.entities.report_warnings to False.

Released under New BSD license.