Python GraphQL parser
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
graphql
tests
.gitignore
.travis.yml
AUTHORS
LICENSE
MANIFEST.in
README.rst readme: mention compatibility with Python 3.5 and 3.6 Apr 26, 2018
requirements.txt
setup.py

README.rst

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("""
{
  user(id: 4) {
    id
    name
    profilePic
    avatar: profilePic(width: 30, height: 30)
  }
}
""")
print(ast)

License

MIT