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.8.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.8-py3-none-any.whl
(17.7 kB
view details)
File details
Details for the file garf_core-0.0.8.tar.gz.
File metadata
- Download URL: garf_core-0.0.8.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 |
64e3aef91a25b5ac22e79b2eac81063792b782b7f7fb34f94eb5a2b1fb45348f
|
|
| MD5 |
42d3a3a6e70e8be16532dd8b4e92453b
|
|
| BLAKE2b-256 |
37401826ef3f9d9a691c6b1a1e9cdccf01da3fcbacb3e1b086b0245449a4a3d2
|
File details
Details for the file garf_core-0.0.8-py3-none-any.whl.
File metadata
- Download URL: garf_core-0.0.8-py3-none-any.whl
- Upload date:
- Size: 17.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.29
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0885aaade18a4490a6799e9019a24e9e3cd8d0973a41680ec1aeca00f756e08b
|
|
| MD5 |
85ebf91434092a009c37d6c8f6cd8ee6
|
|
| BLAKE2b-256 |
42864ffc7fe9d26a93c28f0b9687784a792cde590eea54a8949ae06727dba055
|