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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file gqlite-0.4.0.tar.gz.

File metadata

  • Download URL: gqlite-0.4.0.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.6 Darwin/22.6.0

File hashes

Hashes for gqlite-0.4.0.tar.gz
Algorithm Hash digest
SHA256 0e10cd7aebe52422d04f9e860a9c452e77a272342b79573161fd7f338345ef04
MD5 9b6ba615cc18e6f60550c6758fdba4d1
BLAKE2b-256 2264edfcc153c9cd1be644cd6784d5d43a2737110be6d74b036841035e56f921

See more details on using hashes here.

File details

Details for the file gqlite-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: gqlite-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.6 Darwin/22.6.0

File hashes

Hashes for gqlite-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 302d803cdee6fc16293bd98c8c5cb8000d29b608ad003efd14ab50612b918962
MD5 fc24980472ae2c8c4fb19103f233ef54
BLAKE2b-256 415168b88c93e7ea26b59c8256d4676ba6d78d44478ad81d98259e0fa35bdb9c

See more details on using hashes here.

Supported by

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