Files
make-cad/docs/api/value.md
T
NiJingzhe 0e23835385 docs: translate docstrings and refresh skill guidance
Translate the Python docstrings and regenerated API references to English so downstream tooling and generated docs stay consistent. Refresh the skill instructions to require repo-root doc reads and incremental QL-grounded validation, then release the update as 2.0.5.
2026-03-21 00:07:01 +08:00

507 B

value

API Definition

def value(path: str, default: Any = None) -> KeyFn

Source: ql.py

Description

Build a value getter for sorting or projection.

Q.select(items).order_by(Q.value("geo.height"))

Parameters

path

  • Description: Metadata path, for example geo.height.

default

  • Description: Default value when lookup fails.

Returns

Callable[[Any], Any]: Getter function.

Examples

key = Q.value("geo.height", 0.0)
height = key(obj)