Skip to main content

Executes queries against API and writes data to local/remote storage.

Project description

garf-executors - One stop-shop for interacting with Reporting APIs.

garf-executors is responsible for orchestrating process of fetching from API and storing data in a storage.

Currently the following executors are supports:

  • ApiExecutor - fetching data from reporting API and saves it to a requested destination.
  • BigQueryExecutor - executes SQL code in BigQuery.
  • SqlExecutor - executes SQL code in a SqlAlchemy supported DB.

Installation

pip install garf-executors

Usage

After garf-executors is installed you can use garf utility to perform fetching.

garf <QUERIES> --source <API_SOURCE> \
  --output <OUTPUT_TYPE> \
  --source.params1=<VALUE>

where

  • <QUERIES>- local or remote path(s) to files with queries.
  • <API_SOURCE>- type of API to use. Based on that the appropriate report fetcher will be initialized.
  • <OUTPUT_TYPE> - output supported by garf-io library.

If your report fetcher requires additional parameters you can pass them via key value pairs under --source. argument, i.e.--source.regionCode='US' - to get data only from US.

Concrete --source parameters are dependent on a particular report fetcher and should be looked up in a documentation for this fetcher.

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_executors-0.0.12.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

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

garf_executors-0.0.12-py3-none-any.whl (18.5 kB view details)

Uploaded Python 3

File details

Details for the file garf_executors-0.0.12.tar.gz.

File metadata

  • Download URL: garf_executors-0.0.12.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.5

File hashes

Hashes for garf_executors-0.0.12.tar.gz
Algorithm Hash digest
SHA256 63b5b57634b8fc48f93b539c87f6ac59c2d1a85f7a6e266b54989b4da673d311
MD5 050457e045854aa0701c5765b36777d8
BLAKE2b-256 b9c689577670569bed80c499bada62883f7f20755369b57b8fbee47625b4bc7a

See more details on using hashes here.

File details

Details for the file garf_executors-0.0.12-py3-none-any.whl.

File metadata

File hashes

Hashes for garf_executors-0.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 74e72c38cc15ca764711b3115c10224d5a48c73b0f32e819a54855007664a4b2
MD5 368f9b108b59a9c6ba99a1c3e234fab7
BLAKE2b-256 26a46e2bca484a731af1d66ed5edfe949f02155517c85f05dda0d43c1d91adb1

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