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.2.tar.gz (21.2 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.2-py3-none-any.whl (48.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: garf_io-1.3.2.tar.gz
  • Upload date:
  • Size: 21.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.20 {"installer":{"name":"uv","version":"0.11.20","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.2.tar.gz
Algorithm Hash digest
SHA256 234c3664fc3d4a1d5f01f41b520d5b4010eb36aaff58b928c4227c35360addfe
MD5 817812d01c506a260fc50854f0f2d201
BLAKE2b-256 a1139faf0e97d877ed88fcd5969795850a135ac37b75b36de1747647fbb5001c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: garf_io-1.3.2-py3-none-any.whl
  • Upload date:
  • Size: 48.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.20 {"installer":{"name":"uv","version":"0.11.20","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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 36e9bb56c86ab1f3f44fbbecaa43394135c91e9eb9bfd390a54b14e299f38951
MD5 b63cca84e54a1d3c1f983cbdb12dbc92
BLAKE2b-256 9e6a46eda9da97284603b3729297f29ada139aa92c4e8690b2ad11332d151d57

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