thara / snowpy

SnowPy is Python wrapper for the API Blueprint parser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

logo

SnowPy

API Blueprint Parser for Python

Pyton binding for the Snow Crash library.

API Blueprint is Web API documentation language. You can find API Blueprint documentation on the API Blueprint site.

** This project is in development. It has not been released yet. **

Getting started

import snowpy

result = snowpy.parse('# My API', export_source_map=True)
print(result.ast.name)
print(result.sourcemap.name)

Parsing options

Options can be passed to the parser. We support require_blueprint_name and export_source_map option.

import snowpy

options = {'export_source_map': True}
result = snowpy.parse('# My API', **options)
print(result)

License

MIT License. See the LICENSE file.

About

SnowPy is Python wrapper for the API Blueprint parser

License:MIT License