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.11.tar.gz
(14.6 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.11.tar.gz.
File metadata
- Download URL: garf_core-0.0.11.tar.gz
- Upload date:
- Size: 14.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.29
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33c95df476ad5527e6abdd9542890f226f4dd6f6c9dd6ed13383d59283e0c408
|
|
| MD5 |
32f9e9cc59744a4e03df010aba14b162
|
|
| BLAKE2b-256 |
a80a894164398dd782cffbf908768394b21c66b3e7d59d106ce4debc1acd874b
|
File details
Details for the file garf_core-0.0.11-py3-none-any.whl.
File metadata
- Download URL: garf_core-0.0.11-py3-none-any.whl
- Upload date:
- Size: 18.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.29
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b077ec88af73133257c9dc5e5d4878fd83b8495ffb1bbd1d5e3d47268fbb1f7
|
|
| MD5 |
fee18fd388a7a35d1e1db275e3909b12
|
|
| BLAKE2b-256 |
7284723d36e785adeaceef8b1a545b21e65fc44019f15a99a1b605df318d4f8e
|