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.6.tar.gz
(13.4 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.6-py3-none-any.whl
(17.0 kB
view details)
File details
Details for the file garf_core-0.0.6.tar.gz.
File metadata
- Download URL: garf_core-0.0.6.tar.gz
- Upload date:
- Size: 13.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.29
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d86c6a78403ea2780a6c023ecdee5a80a3d10bb1052d6b7ceb3a800920c32dea
|
|
| MD5 |
8716897a38fbcae84629d29d5f45d80a
|
|
| BLAKE2b-256 |
dabd25ddfb0438a6616b7ebb431440544564d05f797df7dbc748a256afca6b97
|
File details
Details for the file garf_core-0.0.6-py3-none-any.whl.
File metadata
- Download URL: garf_core-0.0.6-py3-none-any.whl
- Upload date:
- Size: 17.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.29
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ac5a6767eb7a4d0e8af62fde091c1abd1c80ec324ecac5ddb6a841e9306ee58
|
|
| MD5 |
9057b9302f2aa74584bae9c848d11141
|
|
| BLAKE2b-256 |
285d8837334afb9c9c8c515a5945db0ae16d03ed0bf7544a1db828293fc19a35
|