Skip to main content

load_contract_artifact

Kind: Function
Domain: Scene and artifacts
Canonical import: from cadflow.scene import load_contract_artifact

Signature

def load_contract_artifact(relative_path: 'str') -> 'bytes'

Description

Load exact packaged contract bytes by a safe package-relative path.

Parameters

NameTypeRequiredDefaultSource description
relative_path'str'yes-Not explicitly described in the source docstring.

Returns

Type: 'bytes'

The source docstring does not declare additional return semantics.

Errors

The source docstring does not declare a narrower exception contract. Invalid types, values, ownership, paths, or backend state may still raise the corresponding public error.

Behavior and constraints

  • This operation reads external data and may reject missing, malformed, or unsupported input.

Import check

from cadflow.scene import load_contract_artifact

See also