builtin_catalog#
- scikitplot.cleanprompt.builtin_catalog()[source]#
Return the built-in catalog, read from the compiled JSON.
- Returns:
- Catalog
Cached for the life of the process.
- Raises:
- CleanPromptError
If the compiled file is missing or malformed — which is a packaging defect, reported as one rather than as an empty catalog.
- Return type:
Notes
Developer notes. Standard library only. Every definition is validated again on load, which executes every pattern’s examples; this costs a few milliseconds once per process and means a corrupted or hand-edited file is refused rather than trusted.
Gallery examples#
Cleanprompt Packs and Formats: Records, Configs and Whole Folders
Cleanprompt Packs and Formats: Records, Configs and Whole Folders