Skip to main content

Client for Reporting API.

Project description

Reporting API Client

This is a Python Client for Jampp’s Reporting API. For more information, check the docs.

Features

  • Execute Pivots in an user friendly manner.

  • Execute raw GraphQL queries against the Reporting API.

Basic Usage

import os

from reporting_api_client import ReportingAPIClient


client = ReportingAPIClient(os.environ["CLIENT_ID"], os.environ["CLIENT_SECRET"])
query = """{
    pivot(from: "2022-07-01", to: "2022-07-02", granularity: DAILY) {
        results {
            clicks
        }
    }
}"""

result = client.query(query)
print(result)

Executing the above code should output a result similar to the following:

$ python example.py
{'pivot': {'results': [{'clicks': 123456}]}}

Change Log

All notable changes to this project will be documented here.

Sort subsections like so: Added, Bugfixes, Improvements, Technical tasks. Group anything an end user shouldn’t care deeply about into technical tasks, even if they’re technically bugs. Only include as “bugfixes” bugs with user-visible outcomes.

When major components get significant changes worthy of mention, they can be described in a Major section.

v0.3.2 - 2026-06-01

Changed

  • Relax gql requirements to improve compatibility with older stacks

v0.3.1 - 2026-04-29

Yanked

v0.3.0 - 2022-09-12

Added

  • Add workflows for CI and publishing to PyPI.

  • Host documentation publically.

Changed

  • Remove Jampp’s refferences.

v0.2.0 - 2022-08-29

Added

  • Remove need of introspection on client.

v0.1.0 - 2022-07-19

Added

  • Add base ReportingAPIClient implementation using OAuth for authentication

  • Rename to reporting_api_client.

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

jampp_reporting_api_client-0.3.2.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

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

jampp_reporting_api_client-0.3.2-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file jampp_reporting_api_client-0.3.2.tar.gz.

File metadata

File hashes

Hashes for jampp_reporting_api_client-0.3.2.tar.gz
Algorithm Hash digest
SHA256 1de70f6237ec15234658b572c01229cf61eba25251208d7f911693310d6ddfde
MD5 d4760f9d5cad134a106df3c9374168a9
BLAKE2b-256 913505054642adaa37def2276c63cd25d316a1c82733af84e7f128b56d10df6e

See more details on using hashes here.

File details

Details for the file jampp_reporting_api_client-0.3.2-py3-none-any.whl.

File metadata

File hashes

Hashes for jampp_reporting_api_client-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7f782b28c681f4b0faba87c583cfaffe00f083b5f4a84eec1ac0308a67684c12
MD5 8da3b70dd6a27d50f8d8898bcfe6759c
BLAKE2b-256 a1fb330589cf26fdb05d2abcae840a0ae43e81664e3fdd7bf18fbc4e28b1f868

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