prismagraphql/python-graphql-client

Name: python-graphql-client

Owner: Prisma

Description: Simple GraphQL client for Python 2.7+

Created: 2016-05-12 12:09:18.0

Updated: 2018-05-12 17:15:57.0

Pushed: 2018-01-05 09:12:58.0

Homepage: null

Size: 10

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

python-graphql-client

Simple GraphQL client for Python 2.7+

Install
install graphqlclient
Usage
 graphqlclient import GraphQLClient

nt = GraphQLClient('http://graphql-swapi.parseapp.com/')

lt = client.execute('''

lFilms {
films {
  title
}




t(result)
Authorization

Authorization tokens can be added to the request using the client's inject_token method:

nt.inject_token('very-long-and-secure-token')
License

MIT License


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.