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
Release history Release notifications | RSS feed
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)
Built Distribution
gqlite-0.4.0-py3-none-any.whl
(2.5 kB
view hashes)