Files
make-cad/docs/api/meta.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

676 B

meta

API Definition

def meta(path: str, op: str, value: Any) -> Predicate

Source: ql.py

Description

Build a metadata-based predicate.

Q.meta("geo.type", "==", "box")

Parameters

path

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

op

  • Description: Comparison operator. Supports ==, !=, >, >=, <, and <=.

value

  • Description: Comparison target value.

Returns

Callable[[Any], bool]: Predicate function.

Raises

  • TypeError: If op is not a string.
  • ValueError: If the operator is unsupported.

Examples

pred = Q.meta("geo.size.x", ">", 1.0)
matched = pred(obj)