Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

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 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

Project details


Download files

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

Files for graphql-py, version 0.8.1
Filename, size File type Python version Upload date Hashes
Filename, size graphql-py-0.8.1.tar.gz (13.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page