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.source- type of API to use. Based on that the appropriate report fetcher will be initialized. Explore supported APIs hereoutput- output supported bygarf-iolibrary.
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
--sourceparameters are dependent on a particular report fetcher and should be looked up in a documentation for this fetcher.
Documentation
Explore full documentation working with garf-executors
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file garf_executors-1.4.0.tar.gz.
File metadata
- Download URL: garf_executors-1.4.0.tar.gz
- Upload date:
- Size: 27.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe8e6ce71296cec20639b4d2ae8003de3399ea79e657c4869d09f2d1b5352a2e
|
|
| MD5 |
b56fd190453a7504bd96bb544e53640d
|
|
| BLAKE2b-256 |
251c7775f9eadeb332234923a174c4c0726c07f2599d519831866e08aa2dcf08
|
File details
Details for the file garf_executors-1.4.0-py3-none-any.whl.
File metadata
- Download URL: garf_executors-1.4.0-py3-none-any.whl
- Upload date:
- Size: 54.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bf5e8970d8148f924632591cbabf834307b72b4a3c5f2820f92fcea4712e3445
|
|
| MD5 |
37933de04dd1d486df821affd361bfef
|
|
| BLAKE2b-256 |
795d7b463b074ca0df43549205f197984fc65ed989bf4ce2afb306b9e7093aac
|