Skip to main content

A GraphQL Client

Project description

Getting Started

client = GraphQLClient('https://www.graphqlhub.com/graphql')

result = client.query('''
query ($id: String!) {
    hn2 {
        nodeFromHnId(id: $id, isUserId: true) {
            id
        }
    }
}
''', {'id': 'clayallsopp'})

The client constructor can also take a dictionary of additonal headers in a keyword argument headers or as the second parameter.

Tests

To Run Tests

make test

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
graphql_client-0.3.0.tar.gz (2.1 kB) Copy SHA256 hash SHA256 Source None Jul 30, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page