read_template_info#
- scikitplot.cython.read_template_info(template_id, *, encoding='utf-8')[source]#
Read metadata for a template and return a
TemplateInfo.- Parameters:
- template_idstr
Template identifier returned by
list_templates.- encodingstr, default=”utf-8”
Reserved for future use (kept to preserve API stability).
- Returns:
- TemplateInfo
Structured template metadata. If no metadata file exists, returns a populated object with defaults and inferred fields.
- Raises:
- FileNotFoundError
If the template source file cannot be found.
- ValueError
If a metadata file exists but is invalid JSON or invalid shape.
- Parameters:
- Return type:
Notes
This function never imports or executes template code. It is safe for documentation builds.