graphql-py: Parser for latest GraphQL specification


License
Other
Install
pip install graphql-py==0.8.1

Documentation

graphql-py

https://travis-ci.org/ivelum/graphql-py.svg?branch=master

GraphQL lexer and parser written in pure Python, produces AST. Features:

Installation

$ pip install graphql-py

Usage

from graphql.parser import GraphQLParser

parser = GraphQLParser()
ast = parser.parse("""
  query UserQuery {
    user(id: 4) {
      id
      name
      profilePic
      avatar: profilePic(width: 30, height: 30)
    }
  }
""")
print(ast)

License

MIT