Skip to main content

series_bindings.cell_type_env_from_bindings()

Compile a binding manifest into a lazy CellTypeEnv.

Usage

Source

series_bindings.cell_type_env_from_bindings(
    bindings,
    *,
    workbook,
)

Parameters

bindings: Mapping[str, Any]

Loaded (merged) series binding manifest.

workbook: Path | str
Workbook path; read for data_range expansion, key binds, and from_workbook cached values.

Returns

SeriesDomainIndex

A SeriesDomainIndex keyed like constraints_to_cell_type_env output.

Address lookup compiles one cell. The first from_workbook miss

prefetches every off-graph value, one stream per sheet. Iteration and

len expand the whole domain. Callers that need a fully expanded dict

can write dict(index).

Raises

SeriesRelationError
A relation partner is missing, incomparable, cyclic, reflexive, or has no cell at the declaring key.