A simple Python GraphQL playground server that wraps some of the endpoints of the GoodReads REST API.
Uses Flask and Graphene. Almost a Python port of the node version by mpj.
$ pipenv install
$ pipenv shell
$ export GOODREADS_KEY=<your goodreads api key>
$ export FLASK_APP=src/main/app.py
$ flask run
You can then either check out the GraphiQL webpage, or use cURL:
$ curl -X POST -H "Content-Type: application/json" --data '{"query": "{ author(id:3706) { name } }"}' localhost:5000/graphql
{"data":{"author":{"name":"George Orwell"}}}