scitex_template.registry
Registry of templates vendored in this repo.
- Reads
templates/REGISTRY.yamlfrom either: the live git checkout of scitex-template (editable install), or
~/.scitex/template/cache/templates/REGISTRY.yaml(shallow-clone cache, populated on first cloner call).
The wheel installed from PyPI intentionally does NOT ship templates/ — it
contains only the cloner code. At runtime the cloner clones this repo shallowly
into ~/.scitex/template/cache/ and reads the registry + template payload
from there. Keeps the wheel <100KB while the git repo stays the single source
of truth.
Functions
|
Return the registry entry for |
Parse |
|
Return the directory that contains |
Classes
|
- scitex_template.registry.find_template(template_id)[source]
Return the registry entry for
template_id, or None.- Return type:
- scitex_template.registry.load_registry()[source]
Parse
templates/REGISTRY.yamland return every entry.Raises
FileNotFoundErrorif neither the editable checkout nor the cache is populated — the caller is responsible for triggering a shallow-clone of the scitex-template repo into~/.scitex/template/cache/.- Return type: