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.

Source Distribution

rawgql-0.1.dev1.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

rawgql-0.1.dev1-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file rawgql-0.1.dev1.tar.gz.

File metadata

  • Download URL: rawgql-0.1.dev1.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0

File hashes

Hashes for rawgql-0.1.dev1.tar.gz
Algorithm Hash digest
SHA256 42dec90cdbb9e22c7c1914829e7caac090dfd8c0fbbf24912b82bf589391a0e0
MD5 0124fe2bb0e1bedc088c80ac8bd5ab6f
BLAKE2b-256 506a3e1c2bba68f400d84470abf9a648666775885d9800bf6ff35a5b7eb2437e

See more details on using hashes here.

File details

Details for the file rawgql-0.1.dev1-py3-none-any.whl.

File metadata

  • Download URL: rawgql-0.1.dev1-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0

File hashes

Hashes for rawgql-0.1.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 5e5d24eac38e2a5b99872ed97b4237bf7468d3d9434040e6d33f0f5c066cc28d
MD5 4e8bc9d3ec5f463b7ab37f25b4e1f03a
BLAKE2b-256 0461e08c987887fadb57327f319e2c1d209a6d187846c4fefe169b212d2a32a6

See more details on using hashes here.

Supported by

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