Table

https://img.shields.io/pypi/v/kpireport-table
pip install kpireport-table

API

class kpireport_table.Table(report: Report, datasources: kpireport.datasource.DatasourceManager, **kwargs)

Bases: kpireport.view.View

Render data fetched from a datasource as a table.

A table can be rendered as HTML, Markdown, or for display in Slack. When displayed for Slack, the table is rendered as an image, as Slack does not have support for rendering tables as part of a message block.

datasource

the datasource ID to fetch from.

Type

str

query

the query to execute against the datasource.

Type

str

query_args

any additional keyword arguments to the datasource query operation.

Type

dict

max_rows

maximum number of rows to display. If the output table has more rows, they are ignored. (Default 10)

Type

int

Changelog

0.0.1

Prelude

Initial commit.

New Features

  • Initial commit.