Handles reading queries and writing GarfReport from garf-core package
Project description
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.
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
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
File details
Details for the file garf_io-1.3.3.tar.gz.
File metadata
- Download URL: garf_io-1.3.3.tar.gz
- Upload date:
- Size: 21.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","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 |
9d7271b6ad12c9812e041afbfef25b258877654c6cb196e0ae8f60ee1672af40
|
|
| MD5 |
13a88ff652cf96578417855c114a8161
|
|
| BLAKE2b-256 |
4778d35fca6ee4d4aabf671a5725cbecee67ae9ea2848ec6687fcc21a95dc3cf
|
File details
Details for the file garf_io-1.3.3-py3-none-any.whl.
File metadata
- Download URL: garf_io-1.3.3-py3-none-any.whl
- Upload date:
- Size: 48.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","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 |
b0bd79528c7c70d026f7645d57c1e45f2e867a0c455cf5410e175fb531f49304
|
|
| MD5 |
34cdf100dd462687ea9cf053a0b5c3ea
|
|
| BLAKE2b-256 |
b20d6ae2495319a2c79b7dca7d789deb21d586aa792eddb422428f690c189fac
|