Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 379 Bytes

File metadata and controls

22 lines (16 loc) · 379 Bytes

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