itolosa / pygql

A working fork of graphql-python/gql

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PYGQL

Is a fork of GQL and a GraphQL client for Python. Plays nicely with graphene, graphql-core, graphql-js and any other GraphQL implementation compatible with the spec.

GQL architecture is inspired by React-Relay and Apollo-Client.

travis coveralls

Installation

$ pip install pygql

Usage

The example below shows how you can execute queries against a local schema.

from pygql import gql, Client

client = Client(schema=schema)
query = gql('''
{
  hello
}
''')

client.execute(query)

License

MIT License

About

A working fork of graphql-python/gql

License:MIT License


Languages

Language:Python 99.4%Language:Shell 0.6%