Best Flask open-source libraries and packages

Goodreads_gql_py

A playground GraphQL server that wraps the Goodreads API
Updated 5 years ago

graphql_goodreads_py

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.

Running

$ 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"}}}
Tags server python