v0.0.29¶
New¶
lythonic.compose.namespace: a node can declare one opaque requirement,requires: str | None, which the host enforces. woodglue, for example, uses it as the node's Required Action, such as"write". Lythonic only stores it inNsNodeConfig.requiresand exposes it asNamespaceNode.requires. It can be set with@nsnode(requires=...)on fragment classes and modules, withNamespace.register(..., requires=...)for callables, DAGs and DAG factories, withregister_all(..., requires=...), and asrequires:on a YAML /from_dictentry. It round-trips throughto_dict(). If therequiresargument and a passed config'srequiresdiffer,registerraisesValueError. Unliketags, the config does not silently win.requiresis unrelated to@mount_required.
Changed¶
lythonic.compose.namespace:Namespace.registerclaims a DAG (dag.parent_namespace) only after its node is built. A DAG registration rejected for a duplicate nsref or a conflictingrequirescan now be retried. Previously the retry failed with "already registered".
Documentation¶
- The namespace module docs gain a "Requires" section, and the glossary defines "Requirement".
Decisions and tickets¶
Closed tickets:
-
16 Node metadata: optional
requireson nsnode / register / NsNodeConfig¶