Create a formatter of type formatter_type with initialization options.
If convert_values is True then values are considered to be strings and are converted into their respective types as specified in the formatter metadata. This should be used as convenience conversion from web server, for example.
Register formatter factory with type name formatter_type
Creates a formatter that formats result into a tabular structure. count_label is default label to be used for record_count aggregation.
Create a simple HTML table formatter
Creates a cross-table formatter.
Arguments:
If measures are put on rows or columns, then respective row or column is added per measure. The data contains single measure values.
If measures are put in the table as cells, then the data contains tuples of measures in the order as specified in the measures argument of format() method.
If no measure_labels is provided or no key for a measure is found in the dictionary, then the label is constructect with form: “Measure (aggregation)”, for example: “Amount (sum)”.
If aggregation_labels is provided, then it is used to give measure aggregation label.
Creates a cross table from a drilldown (might be any list of records). onrows contains list of attribute names to be placed at rows and oncolumns contains list of attribute names to be placet at columns. measures is a list of measures to be put into cells. If measures are not specified, then only record_count is used.
Returns a named tuble with attributes:
Create a simple HTML table formatter. See CrossTableFormatter for information about arguments.
See also