graphql-py: Parser for latest GraphQL specification
Project description
GraphQL lexer and parser written in pure Python, produces AST. Features:
Complies with latest working draft of GraphQL specification;
Fast enough, built on PLY;
Tested vs. Python 2.7, 3.4 - 3.9, and PyPy
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
Release history Release notifications | RSS feed
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)
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | a03557d67817a0f23c5bef83ce8791c8fa3f5f9d165e1408abc6393def1d720c |
|
MD5 | 12d76ba178dca17ba76f9ef61a919b7c |
|
BLAKE2b-256 | 7596e6662175930fedc62fdea05c8eee29ab3c052790ac7266f208bf43c0f6b0 |