Skip to main content

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.

Metadata

Release files for gqlite 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gqlite 0.4.0
File Size Uploaded
gqlite-0.4.0.tar.gz 2.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gqlite 0.4.0
File Interpreter ABI Platform
gqlite-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 4.8 kB

Release files / gqlite-0.4.0.tar.gz

Download URL gqlite-0.4.0.tar.gz
Size 2.3 kB
Tags Source
SHA-256 checksum
How to use checksums
0e10cd7aebe52422d04f9e860a9c452e77a272342b79573161fd7f338345ef04
BLAKE2b-256 checksum
How to use checksums
2264edfcc153c9cd1be644cd6784d5d43a2737110be6d74b036841035e56f921
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.11.6 Darwin/22.6.0

Release files / gqlite-0.4.0-py3-none-any.whl

Download URL gqlite-0.4.0-py3-none-any.whl
Size 2.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
302d803cdee6fc16293bd98c8c5cb8000d29b608ad003efd14ab50612b918962
BLAKE2b-256 checksum
How to use checksums
415168b88c93e7ea26b59c8256d4676ba6d78d44478ad81d98259e0fa35bdb9c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.11.6 Darwin/22.6.0

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

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