Abstracts fetching data from API based on provided SQL-like query.
Project description
garf-core - Unified approach for interacting with reporting APIs.
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
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
garf_core-0.0.12.tar.gz
(15.1 kB
view details)
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_core-0.0.12.tar.gz.
File metadata
- Download URL: garf_core-0.0.12.tar.gz
- Upload date:
- Size: 15.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.29
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb36181cc7a0fc4d62cd995606b922cc276faf1db2fd16d22fa86f0d59d29866
|
|
| MD5 |
7b1a9893e127f9bac586af7e16da9172
|
|
| BLAKE2b-256 |
1d7dfd6ca0d51f5f80c063fac599586649da0c27a77360329c57ba10168d22fe
|
File details
Details for the file garf_core-0.0.12-py3-none-any.whl.
File metadata
- Download URL: garf_core-0.0.12-py3-none-any.whl
- Upload date:
- Size: 18.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.29
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de8225a21dbc020219e10f544c387ae2673ff42c98cfe759e140f4f996492dac
|
|
| MD5 |
be05ac2f2c8da000d0a1da5403a00d6e
|
|
| BLAKE2b-256 |
b35d6c496b8ff0b5a13c2bb0f5142977d8596aeb607b450e85790b010a55e0dc
|