cadrumo.core.registry_token module¶
Opaque text tokens whose membership a registry projection establishes.
A registry-projected vocabulary carries no closed Python member list: the dated registry owns which tokens exist and what they mean. These bases hold only the structural contract every such token shares, so a vocabulary type declares its docstring and nothing else unless its diagnostics or boundary differ.
StrictRegistryTokenadmits only already projected tokens at a typed model boundary and serializes them as text.TextProjectedRegistryTokenprojects a non-empty text value at the model boundary.
- class RegistryToken(value, *, _registry_validated=False)[source]¶
Bases:
strText token constructible only at a registry projection boundary.
- class StrictRegistryToken(value, *, _registry_validated=False)[source]¶
Bases:
RegistryTokenRegistry token a typed model accepts only once it has been projected.
- class TextProjectedRegistryToken(value, *, _registry_validated=False)[source]¶
Bases:
RegistryTokenRegistry token a typed model projects from its non-empty text form.