An open API service indexing awesome lists of open source software.

https://github.com/hugodf/python-graphql-client-example

An example consuming a GraphQL API from Python using gql.
https://github.com/hugodf/python-graphql-client-example

graphql graphql-client python python-graphql-client

Last synced: about 1 month ago
JSON representation

An example consuming a GraphQL API from Python using gql.

Awesome Lists containing this project

README

          

# Python GraphQL client example

An example consuming a GraphQL API from Python using gql.

## Run using virtualenv

```sh
$ virtualenv venv -p python3
```

```sh
$ source ./venv/bin/activate
```

```sh
$ pip install -r requirements.txt
```

```sh
$ python fetch.py
{'pokemon': {'attacks': {'special': [{'name': 'Discharge'}, {'name': 'Thunder'}, {'name': 'Thunderbolt'}]}}}
```