semvec/pypi-packages huggingface dataset:
aws-graphql-client 0.0.1
Python AWS GraphQL Client
License: MIT
Keywords: api graphql client aws

# AWS GraphQL Client
> Simple package for making signed requests to a graphql server on AWS.

## Installation

```bash
pip install aws-graphql-client
```


## Usage

- Query/Mutation

```py
from aws_graphql_client import GraphqlClient

# Instantiate the client with an endpoint.
client = GraphqlClient(endpoint="https://graphql.avengers.com")

# Create the query string and variables required for the request.
query = """
  query HeroQuery($id: String!) {
    hero(id: $id) {
      name
      home
    }
  }
"""

variables = {"id": "StrongestAvenger"}

# Synchronous request
data = client.execute(query=query, variables=variables)
print(data)  # => {'data': {'hero': { 'name': 'Thor', 'home': 'Asgard' }}}
```

## Authors and Acknowledgement

## License

[MIT License](LICENSE)