Skip to main content

Handles reading queries and writing GarfReport from garf-core package

Project description

garf-io - Writing GarfReport to anywhere

PyPI Downloads PyPI

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


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.4.tar.gz (21.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

garf_io-1.3.4-py3-none-any.whl (48.8 kB view details)

Uploaded Python 3

File details

Details for the file garf_io-1.3.4.tar.gz.

File metadata

  • Download URL: garf_io-1.3.4.tar.gz
  • Upload date:
  • Size: 21.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","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

Hashes for garf_io-1.3.4.tar.gz
Algorithm Hash digest
SHA256 c208132299dbd0f5557acaacbb728e81aa4bcd88c5d66ffe0188bc2a76d82148
MD5 42a291989d6eb24608c470b6b88fd71c
BLAKE2b-256 ad6a30b3b19a9bf4a4459125c27d7d52bb3c10b6dc33a2c8da24c63543d92076

See more details on using hashes here.

File details

Details for the file garf_io-1.3.4-py3-none-any.whl.

File metadata

  • Download URL: garf_io-1.3.4-py3-none-any.whl
  • Upload date:
  • Size: 48.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","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

Hashes for garf_io-1.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4fb265a53af9ef89cd86d4d265bc662a75d04682f23e1ccd62bc305f76c60fba
MD5 f5d20d2d6cb37ec32aa9426d142b9f94
BLAKE2b-256 0170b2cc209a5b15f7cd3e33aeeec4cabf691d4b24316a76e7e103c0662a5d03

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page