KPI Reporter API¶
Sep 13, 2021
KPI Reporter API Reference:
If the “templates” folder inside a view plugin is missing, an error will no longer be thrown when initializing the PackageLoader for the plugin.
Plugin template resolution now supports walking up class hierachies. If a concrete class extends an existing plugin, templates will be first searched for in the concrete class’ module, then its parent class, and so on. Before, only the concrete class and the base View module were included in the lookup paths, so parent class templates would be ignored.
The default values for
end_datewill now be timezone-aware and derive their timezones from the local timezone on the system running the report process. A
timezonereport argument is also now available, which can be a timezone strong, and will override the timezone for automatically-generated values for the start and end date.
The font-family of the heading font(s) can now be specified via the
heading_fonttheme argument. It defaults to a font-stack that renders something that looks like Helvetica and falls back to any sans-serif font installed.
The wrapper margin is now customizable on the Theme via the
padding_widthattribute. It defaults to 20, which was the old value in the built-in theme.
Include report templates in the published PyPI package.
Fixes an issue with rendering the license text when the license was valid or expired.
Fixes error due to missing import when loading configuration files automatically.
If no configuration file is provided via the –config-file flag, a
config.yamlfile will be searched for, first in the working directory and then in