/python-graphql-client-example

An example consuming a GraphQL API from Python using gql.

Primary LanguagePython

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'}]}}}