An example consuming a GraphQL API from Python using gql.
Switch branches/tags
Nothing to show
Clone or download
Latest commit 7e5947f Aug 6, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Initial commit Aug 6, 2018
README.md Initial commit Aug 6, 2018
fetch.py Initial commit Aug 6, 2018
requirements.txt Initial commit Aug 6, 2018

README.md

Python GraphQL client example

An example consuming a GraphQL API from Python using gql.

Run using virtualenv

$ virtualenv venv -p python3
$ source ./venv/bin/activate
$ pip install -r requirements.txt
$ python fetch.py
{'pokemon': {'attacks': {'special': [{'name': 'Discharge'}, {'name': 'Thunder'}, {'name': 'Thunderbolt'}]}}}