Skip to main content

graphql-py: Parser for latest GraphQL specification

Project description

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

GraphQL lexer and parser written in 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)

Work in progress

Next I plan to add schema definition and provide a layer for binding real applications logic, so we can have a fully-functional GraphQL server. Django support is also planned, probably as a separate package.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

graphql-py-0.3.0.tar.gz (12.0 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page