optiprofiler.eval_report.schema_text

Contents

optiprofiler.eval_report.schema_text#

optiprofiler.eval_report.schema_text(name, version=None)[source]#

Return the packaged JSON Schema source of 'eval_report' or 'plot_data'.

The schemas are package resources (optiprofiler/schemas), so an installed distribution, its installed test suite and the documentation build all read the same authoritative files. Without version the current producer version is returned (eval_report 2, plot_data 1); version 1 of the main report is the immutable eval_report.schema.json of reports written before version 2. importlib.resources.files exists from Python 3.9; on Python 3.8 the package directory is used.