Skip to main content

Simple Python 3 framework for interacting with GraphQL endpoints

Project description

rawgql is a simple Python 3 framework for interacting with GraphQL endpoints. There is very little to it; the GraphQL class simply accepts a raw query or mutation passed as a string or file, packages it with the necessary headers and optional query variables, and returns a python dictionary with the result.

There is little to no error checking, however there is a small pytest test suite.

By default, the script will attempt to locate an auth.json file in a folder named gql/ in your project's working directory. Additionally, query files can be stored in this folder and can be called from GraphQL.query() by filename. GraphQL.query() also accepts passed strings. An optional argument for query variables is available as well.

Check the function signatures and docstrings for more information. All of the default folders and filenames can be changed with environmental variables or by overriding after importing the module.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
rawgql-0.1.dev1-py3-none-any.whl (3.5 kB) Copy SHA256 hash SHA256 Wheel py3
rawgql-0.1.dev1.tar.gz (2.4 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page