httk.serve.web.widgets.loader

Safe loading and deterministic discovery of trusted site-local widgets.

Classes

SiteWidgetLoader

Load src/widgets/<name>.py without allowing paths to escape it.

Module Contents

class httk.serve.web.widgets.loader.SiteWidgetLoader(widgets_dir: pathlib.Path)[source]

Load src/widgets/<name>.py without allowing paths to escape it.

widgets_dir[source]
available() list[tuple[str, str]][source]
resolve(name: str) httk.serve.web.widgets.core.Widget | None[source]