Simple GraphQL client for Python 2.7+
pip install graphqlclient
from graphqlclient import GraphQLClient client = GraphQLClient('http://graphql-swapi.parseapp.com/') result = client.execute(''' { allFilms { films { title } } } ''') print(result)
Authorization tokens can be added to the request using the client's inject_token
method:
client.inject_token('very-long-and-secure-token')