garf-io - Writing GarfReport to anywhere
garf-io handles reading queries and writing GarfReport to various local/remote storages.
Installation
pip install garf-io
By default garf-io has only support for console, csv and json writers -
explore what additional writers are available.
Usage
CLI
garf query.sql --source API_SOURCE \
--output csv --csv.destination-folder=/tmp/
Python
import garf.core import report
from garf.io import writer
# Create example report
sample_report = report.GarfReport(results=[[1]], column_names=['one'])
# Initialize CSV writer
concrete_writer = writer.create_writer('csv', destination_folder='/tmp/')
# Write data to /tmp/sample.csv
concrete_writer.write(sample_report, 'sample')
Documentation
Learn more about using garf writers.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
garf_io-1.3.5.tar.gz
(21.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
garf_io-1.3.5-py3-none-any.whl
(49.0 kB
view details)
File details
Details for the file garf_io-1.3.5.tar.gz.
File metadata
- Download URL: garf_io-1.3.5.tar.gz
- Upload date:
- Size: 21.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.11.31 {"installer":{"name":"uv","version":"0.11.31","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba1c20e1fcd0f17d86066e2023870f28294c98c6b4c9afa419c7bd82ea3e6ab4
|
|
| MD5 |
8e20867cd44cebc5f0d647c41151fe04
|
|
| BLAKE2b-256 |
3963dcc4ededc32be21aedaa882c1a5726ffa62e52a1044df203f098b6bfe9db
|
File details
Details for the file garf_io-1.3.5-py3-none-any.whl.
File metadata
- Download URL: garf_io-1.3.5-py3-none-any.whl
- Upload date:
- Size: 49.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.11.31 {"installer":{"name":"uv","version":"0.11.31","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e071d639330a00b53f32820cd1e392c574a51f7657ac18837c4eee6ed81fcbd
|
|
| MD5 |
de53d22950b979f90964dc59ac239517
|
|
| BLAKE2b-256 |
62a5a4cbff2ad3f6eee473fc12090d16ee4f2e283a5cf80a6ba78fc6cb97a148
|