Skip to content

Latest commit

 

History

History
46 lines (33 loc) · 902 Bytes

README.rst

File metadata and controls

46 lines (33 loc) · 902 Bytes

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