Skip to content

joewalk102/grapyql

Repository files navigation

grapyql

A Pythonic GraphQL Client

Purpose

The purpose of this project is to provide a simple and efficient GraphQL client for Python developers. It allows developers to easily interact with GraphQL APIs in a Pythonic way, making it easier to fetch and manipulate data.

Example Usage

Python with grapyql:

from grapyql import GqlClient
from grapyql import GqlObject as O

client = GqlClient("https://api.example.com/graphql")

user = O("user", filters={"active": True}).fields(
    "id",
    "name",
    "email",
)

results = client.execute(user)

This produces a GQL Query like:

query ($active: Boolean) {
  user(active: $active) {
    id
    name
    email
  }
}

with variables:

{
  "active": true
}

About

GraphQL Python Client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages