Skip to main content

Simple GraphQL client for Python 2.7+

Project description

python-graphql-client

Simple GraphQL client for Python 2.7+

Install

pip install graphqlclient

Usage

from graphqlclient import GraphQLClient

client = GraphQLClient('http://graphql-swapi.parseapp.com/')

result = client.execute('''
{
  allFilms {
    films {
      title
    }
  }
}
''')

print(result)

Authorization

Authorization tokens can be added to the request using the client's inject_token method:

client.inject_token('very-long-and-secure-token')

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

graphqlclient-0.2.1.tar.gz (1.8 kB view details)

Uploaded Source

File details

Details for the file graphqlclient-0.2.1.tar.gz.

File metadata

File hashes

Hashes for graphqlclient-0.2.1.tar.gz
Algorithm Hash digest
SHA256 c2cd250705180fe1df85908bc7f642e1e19c68d3bf385d601026e4524a697188
MD5 02eed43055d9b12f538a931694abf840
BLAKE2b-256 1df62059bce2cc16078ce2198dda8b34b40f4e7ec5eeebd4dc84b02212397d0f

See more details on using hashes here.

Supported by

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