py-gql-next

A simple python GraphQL client


License
MIT
Install
pip install py-gql-next==0.0.2

Documentation

python-graphql

Python client of GraphGL.This package mainly uses requests to build the http/https requests.

Install

pip install py-gql-next

Usage:

(example of gitlab graphql api)

from pygql import Client

gitlab = Client(url="https://www.gitlab.com/api/graphql")

query = {
    "query": """
    {
        currentUser {
            name
        }
    }"""
}

print(gitlab.execute(query))

Result

{
    "data": {
        "currentUser": None
    }
}

TODO:

  • async support
  • add tests