sddb.TaskAdapter#

class sddb.TaskAdapter(*args, **kwargs)#

What a task repo implements. validate_meta is cheap/advisory, validate authoritative.

Attributes table#

Methods table#

build(sdata)

Produce the task-specific item for one object.

requirements()

Declare what the task needs (tables, elements, ...).

validate(sdata)

Authoritative check on the opened object.

validate_meta(meta)

Cheap, metadata-only check (advisory).

Attributes#

name: str#
version: str#
config: dict[str, Any]#

Methods#

build(sdata: Any) → Any#

Produce the task-specific item for one object.

requirements() → dict[str, Any]#

Declare what the task needs (tables, elements, ...).

validate(sdata: Any) → list[str]#

Authoritative check on the opened object.

validate_meta(meta: ObjectMeta) → list[str]#

Cheap, metadata-only check (advisory).