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.7.tar.gz
(13.9 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
garf_core-0.0.7-py3-none-any.whl
(17.6 kB
view details)
File details
Details for the file garf_core-0.0.7.tar.gz.
File metadata
- Download URL: garf_core-0.0.7.tar.gz
- Upload date:
- Size: 13.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.29
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51136abf391d5678fa6c3020c2f9e60547bb76bd9df3b3a20961fb2591655403
|
|
| MD5 |
2221ee91717870f3eae008793d40b6af
|
|
| BLAKE2b-256 |
06a072c986eff3e214257d401d804276b538677aad4111c5970d44e104325562
|
File details
Details for the file garf_core-0.0.7-py3-none-any.whl.
File metadata
- Download URL: garf_core-0.0.7-py3-none-any.whl
- Upload date:
- Size: 17.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.29
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
131e3e21fa5652842cf45c5e0de7f1af706344dcde5db112b735e1588e7d0f6b
|
|
| MD5 |
6bf6482c2085a8aa9901be3d8fd3c896
|
|
| BLAKE2b-256 |
b8a4677fbaf8de53def143c8afc32fcf0bacde711b540349e1343a44105c4f89
|