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.
Metadata
Release files for garf-io 1.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| garf_io-1.4.0.tar.gz | 22.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| garf_io-1.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 72.8 kB
Release files / garf_io-1.4.0.tar.gz
| Download URL | garf_io-1.4.0.tar.gz |
|---|---|
| Size | 22.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7823c0e71994b87179a7250c9b5714dac10fc6d71c43dae78552c3d0ed071223
|
|
BLAKE2b-256 checksum How to use checksums |
63263609466b3332c867850592d05cbffa790781beacf221e7a0c8bc8ca99ddb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.19 {"installer":{"name":"uv","version":"0.12.19","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}
|
Release files / garf_io-1.4.0-py3-none-any.whl
| Download URL | garf_io-1.4.0-py3-none-any.whl |
|---|---|
| Size | 50.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
86986d6dd0c313fe277b0d3de15edfb34901e9c767aec35fc0bd62df10df9b2e
|
|
BLAKE2b-256 checksum How to use checksums |
66c6dbdd98edf8d7b494322608557876b78d798b220f18ca8cafad9769cecabc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.19 {"installer":{"name":"uv","version":"0.12.19","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}
|