curated_feed.template¶
The two documents a new runner is copied from.
A runner is a directory holding a config, an editorial policy and a subscription list, and every one of them is written by hand. The two that have a shape worth writing down travel with the engine rather than sitting beside the runners: the settings reference is derived from the settings model and is checked against it, and the policy reference records the conventions the scoring prompt depends on. Both are the engine’s to keep current, so a copy kept next to somebody’s feeds would be the copy that went stale.
They are printed rather than copied, because the engine is installed rather than checked out wherever a runner is created — an image, a virtual environment, an editable tree. Nothing reads either file at runtime.
Attributes¶
Functions¶
|
Where a template is installed. |
|
A template's text, exactly as it ships. |
|
|
|
Module Contents¶
- curated_feed.template.PACKAGE = 'curated_feed'¶
- curated_feed.template.FILENAME_BY_TEMPLATE¶
- curated_feed.template.template_path(which: str) pathlib.Path[source]¶
Where a template is installed.
>>> template_path("config").name 'config.template.toml' >>> template_path("policy").is_file() True
- curated_feed.template.read_template(which: str) str[source]¶
A template’s text, exactly as it ships.
- curated_feed.template.build_parser() argparse.ArgumentParser[source]¶