1 min read
pyssg.core.registry
Keyed registry of processing-unit slots.
A Registry[K, V] maps a key (glob/ext, NodeKind, dependency.kind, ...) to a
slot value created on demand. Built-in plugins tap the slot returned by
for_(key); the engine owns how those slots are invoked per phase.
class Registry
Lazily-populated mapping from key to slot, with for_(key) access.
Registry.__init__(self, factory: Callable[[K], V]) -> None
factory builds a fresh slot the first time a key is requested.
Registry.for_(self, key: K) -> V
Return the slot for key, creating it on first access.