Skip to main content

Lightweight client for GraphQL in Python

Project description

gqlite

Simple client for querying GraphQL from Python using requests.

Installation

pip install gqlite

Usage

First set the two environment variables GQLITE_URL and GQLITE_TOKEN. You can also use a .env file for these. Then:

import gqlite

text = """
  hero {
    name
  }
}
"""
gqlite.query(text)  # returns a dict

You can also set variables using the variables keyword argument of gqlite.query.

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

gqlite-0.4.0.tar.gz (2.3 kB view hashes)

Uploaded Source

Built Distribution

gqlite-0.4.0-py3-none-any.whl (2.5 kB view hashes)

Uploaded Python 3

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