Skip to main content

GraphQL client for Python

Project description

This is a GraphQL client for Python. Plays nicely with graphene, graphql-core, graphql-js and any other GraphQL implementation compatible with the spec.

GQL architecture is inspired by React-Relay and Apollo-Client.

travis pypi coveralls

Installation

$ pip install gql

Usage

The example below shows how you can execute queries against a local schema.

from gql import gql, Client

client = Client(schema=schema)
query = gql('''
{
  hello
}
''')

client.execute(query)

License

MIT License

Project details


Download files

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

Source Distribution

gql-0.1.0.tar.gz (3.9 kB view details)

Uploaded Source

File details

Details for the file gql-0.1.0.tar.gz.

File metadata

  • Download URL: gql-0.1.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for gql-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d20cf1eb1c6d54558174a3dcc3cf1ca0e07678cb1123804c2e165838238350f4
MD5 4fe799df09b5cc44ef455c2360fff48a
BLAKE2b-256 aa9c2933b7791210e00f5c26a6243198cc03af9132c29cf85e4c22cb007f171e

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page