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

Source Distribution

graphql-py-0.8.1.tar.gz (13.6 kB view details)

Uploaded Source

File details

Details for the file graphql-py-0.8.1.tar.gz.

File metadata

  • Download URL: graphql-py-0.8.1.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/2.7

File hashes

Hashes for graphql-py-0.8.1.tar.gz
Algorithm Hash digest
SHA256 a03557d67817a0f23c5bef83ce8791c8fa3f5f9d165e1408abc6393def1d720c
MD5 12d76ba178dca17ba76f9ef61a919b7c
BLAKE2b-256 7596e6662175930fedc62fdea05c8eee29ab3c052790ac7266f208bf43c0f6b0

See more details on using hashes here.

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