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. Withoutversionthe current producer version is returned (eval_report2,plot_data1); version 1 of the main report is the immutableeval_report.schema.jsonof reports written before version 2.importlib.resources.filesexists from Python 3.9; on Python 3.8 the package directory is used.