Skip to main content

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

Download files

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

Source Distribution

graphql_client-0.3.0.tar.gz (2.1 kB view details)

Uploaded Source

File details

Details for the file graphql_client-0.3.0.tar.gz.

File metadata

  • Download URL: graphql_client-0.3.0.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/2.7

File hashes

Hashes for graphql_client-0.3.0.tar.gz
Algorithm Hash digest
SHA256 50c10c36b93d661c00a527ea9052a39d5055ef9283f24e8fc951e3f95bc3531f
MD5 76fb782dafed9e716799b4634138fd41
BLAKE2b-256 ee5c3c2232eb41b05dd58411deae899d3046d662b57dba830936f50f2c4bcd23

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3.0 This release

1 file

0.1.1

1 file

0.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page