Skip to main content

Abstracts fetching data from API based on provided SQL-like query.

Project description

garf-core - Unified approach for interacting with reporting APIs.

PyPI Downloads PyPI

garf-core contains the base abstractions are used by an implementation for a concrete reporting API.

These abstractions are designed to be as modular and simple as possible:

  • BaseApiClient - an interface for connecting to APIs.
  • BaseQuery - encapsulates SQL-like request.
  • QuerySpecification - parsed SQL-query into various elements.
  • BaseParser - an interface to parse results from the API. Have a couple of default implementations:
    • ListParser - returns results from API as a raw list.
    • DictParser - returns results from API as a formatted dict.
      • NumericDictParser - returns results from API as a formatted dict with converted numeric values.
  • GarfReport - contains data from API in a format that is easy to write and interact with.
  • ApiReportFetcher - responsible for fetching and parsing data from reporting API.

Installation

pip install garf-core

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

garf_core-0.0.10.tar.gz (14.5 kB view details)

Uploaded Source

Built Distribution

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

garf_core-0.0.10-py3-none-any.whl (18.2 kB view details)

Uploaded Python 3

File details

Details for the file garf_core-0.0.10.tar.gz.

File metadata

  • Download URL: garf_core-0.0.10.tar.gz
  • Upload date:
  • Size: 14.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.29

File hashes

Hashes for garf_core-0.0.10.tar.gz
Algorithm Hash digest
SHA256 f0c945fdafa51c934ab324531c5cc0fc5bd6b5412f9469118a8531f1a0ae7438
MD5 320d73162ef0229d946d25c9690557a7
BLAKE2b-256 6bf9e0273f902f49f6634d36b6e20eb8f03220e15e1c07a69e22ba94620892e0

See more details on using hashes here.

File details

Details for the file garf_core-0.0.10-py3-none-any.whl.

File metadata

  • Download URL: garf_core-0.0.10-py3-none-any.whl
  • Upload date:
  • Size: 18.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.29

File hashes

Hashes for garf_core-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 8005022dda2e4c9c2016b856e2fbf22d7b7ede05f2f0bee35c9ca265a0d483f8
MD5 6d2d6dc320d80ba9d64403ea3e0bc174
BLAKE2b-256 8d37590696cd94c6b6ddb58b01eb2fc89e7106564ecd24339a1b370c95f6988f

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