Pure python apache thrift parser.
For Python 2.7+/3.3+/PyPy
from thriftr import parse
data = open('sample.thrift').read()
parse(data)
NOTE: this parser will be merged into eleme/thriftpy,
from thriftpy import parse
data = open('sample.thrift').read()
parse(data)