Name: gql-fork
Owner: YOCTOL INFO INC.
Description: A fork and re-publish version of gql.
Forked from: graphql-python/gql
Created: 2018-03-26 09:50:30.0
Updated: 2018-03-26 10:33:50.0
Pushed: 2018-03-26 10:33:49.0
Size: 63
Language: Python
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Since the original gql
is not published to the next version, which includes some important feature, we fork and push the latest version to pypi. This repo is maintained until the original author publish 0.2.0.
Install from terminal:
install gql-fork
Then you can use it like the good old days:
gql import gql, Client
gql.transport.requests import RequestsHTTPTransport
nsport = RequestsHTTPTransport(
url='http://api.xxx/graphql',
use_json=True,
nt = Client(
retries=3,
transport=_transport,
fetch_schema_from_transport=True,
y = gql('''
llo
nt.execute(query)
This is 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
.
$ pip install gql
The example below shows how you can execute queries against a local schema.
gql import gql, Client
nt = Client(schema=schema)
y = gql('''
llo
nt.execute(query)