Skip to content

read

Canonical path: o6.read

read

read(fn: _F) -> _F
read(fn: str) -> Callable[[_F], _F]
read(fn)

Implement this VariableType's value read, or one concrete member path.

@o6.read marks an ordinary VariableType instance method as its value-read implementation. The decorator preserves the method and its Python signature, so subclasses can override it without repeating the decorator, and calling it directly still works.

@o6.read("member.child") instead resolves a Python member path when the containing Object finishes, and stores the implementation and containing Object on that concrete Variable. The callback receives range, session, and includeSourceTimestamp as keyword arguments.

See Server callbacks for the shared read/write/call precedence and reset behaviour.