Reference
Public Modules
Namespaced public API surfaces
- exporter.CodeGenerator
-
Generate inverted-tree packages from a
DependencyGraph. - exporter.IdentityTransitCompression
-
Collapse pure identity transit nodes into a projected export graph.
- exporter.OptimalCompression
-
Collapse identity transits and safely inlinable formula nodes.
- exporter.BaseProjectionManifest
-
General, serializable projection manifest for node-collapsing projections.
- exporter.CollapsedGroup
-
Source nodes that folded into one retained computation address.
- exporter.CompositeProjectionManifest
-
Lineage for a sequence of composed projection steps.
- exporter.FormulaRewrite
-
Dependent formula rewrite performed during projection.
- exporter.ProjectedNodeSnapshot
-
Workbook node state captured before projection removes or rewrites it.
- exporter.ProjectionResult
-
Projected graph facade with durable lineage back to the canonical graph.
- exporter.SemanticCatalogView
-
Bound catalog plus classified instance edges for one workbook.
- exporter.BundleDrilldown
-
All classified instance edges that make up one statement-graph bundle.
- exporter.DrilldownCell
-
One cell in a series drilldown, with formula text and catalog identity.
- exporter.DrilldownEdge
-
One classified instance edge with statement-graph endpoints.
- exporter.DrilldownStatement
-
Statement identity for a series drilldown, without catalog types.
- exporter.SeriesDrilldown
-
Cells and classified adjacency for one series, statement, or partition.
- exporter.StatementGraph
-
Compressed statement graph with schedule ranks.
- exporter.StatementLabels
-
Series-level binding documentation copied onto each statement node.
- exporter.StatementNode
-
One statement (or the unbound remainder) in the compressed graph.
- exporter.SemanticVizPayload
-
JSON-serializable statement-graph visualization.
- exporter.ProjectionManifest
-
Stable contract a projection manifest exposes to export and composition.
- exporter.ProjectionStep
-
Projection step that builds a
ProjectionResultfrom a graph. - exporter.WebVizLayoutPlugin
- exporter.SemanticCatalogError
-
Catalog or instance-edge analysis could not be completed.
- exporter.to_web_viz_payload()
-
Build a web-visualization payload from a dependency graph.
- exporter.apply_projection()
-
Apply one or more projection steps, returning the final projection result.
- exporter.build_forwarding_projection_manifest()
-
Build a
BaseProjectionManifestfrom a graph compressionrecord. - exporter.build_optimal_projection_manifest()
-
Build a manifest from an optimal compression record.
- exporter.project_optimal()
-
Return a projected copy of
graphwith optimal compression applied. - exporter.register_projection_manifest()
-
Register a
from_dictdeserializer for projection manifests ofkind. - exporter.resolve_projection_manifest()
-
Deserialize a manifest by dispatching on its
kindvia the registry. - exporter.unregister_projection_manifest()
-
Remove a registered projection manifest
kind(no-op if absent). - exporter.load_semantic_catalog()
-
Build the shared catalog and classified edges from graph plus bindings.
- exporter.drilldown_bundle()
-
Return every classified instance edge in one statement-graph bundle.
- exporter.drilldown_partition()
-
Return cells and adjacency for one instance partition of a series.
- exporter.drilldown_series()
-
Return cells and adjacency for every statement in
series_id. - exporter.drilldown_statement()
-
Return cells and adjacency for one statement.
- exporter.build_statement_graph()
-
Contract instance edges into a statement graph with schedule ranks.
- exporter.statement_graph_to_networkx()
-
Convert a statement graph to a NetworkX MultiDiGraph.
- exporter.to_semantic_viz_payload()
-
Build a statement-graph payload from a cell graph plus series bindings.
- exporter.write_semantic_viz_html()
-
Write a standalone HTML viewer for a statement-graph payload.
- exporter.to_series_graph()
-
Collapse a cell graph to one node per bound series.
- exporter.list_web_viz_layouts()
- exporter.register_web_viz_layout()
- exporter.resolve_web_viz_layout()
-
Look up a registered layout ID or return a direct layout plugin.
- exporter.unregister_web_viz_layout()
-
Remove a registered layout plugin (for tests and notebook cleanup).
- exporter.WebVizPayload
- exporter.SEMANTIC_VIZ_PAYLOAD_VERSION
- exporter.LAYOUT_CLUSTERED_FORCE
- exporter.LAYOUT_FORCEATLAS2
- exporter.LAYOUT_GRAPHVIZ_DOT
- exporter.LAYOUT_GRAPHVIZ_SFDP
- exporter.LAYOUT_SPRING
- exporter.WebVizLayoutSpec
- grapher.DynamicRefCellLimitError
-
Raised when inferred dynamic-ref targets exceed
max_cells. - grapher.GreaterThanCell
-
Metadata marker: the annotated cell is always greater than another cell.
- grapher.NotEqualCell
-
Metadata marker: the annotated cell is never equal to another cell.
- grapher.RealBetween
-
Real-valued interval constraint for Annotated float types (not enumerable for dynamic refs).
- grapher.RealIntervalDomain
-
Closed real-valued interval metadata; not enumerable for dynamic-ref branching.
- grapher.EdgeProvenance
-
Metadata for a single directed edge, possibly from multiple mechanisms in one formula.
- grapher.DynamicRefConfig
-
Configuration for resolving OFFSET/INDIRECT via constraint-based inference.
- grapher.DynamicRefLimits
-
Tuneable safety limits for dynamic-reference inference.
- grapher.DynamicRefTraceEvent
-
A single trace event emitted during dynamic-ref inference.
- grapher.LightweightVizLocalEdges
- grapher.LightweightVizModule
- grapher.LightweightVizModuleEdge
- grapher.LightweightVizPayload
- grapher.CycleReport
-
Result of cycle analysis.
- grapher.DependencyGraph
-
Mutable workbook dependency graph.
- grapher.GraphConsistencyIssue
-
One structured consistency failure.
- grapher.And
-
Logical AND.
- grapher.Arith
-
Numeric
left + rightorleft - rightoperand of a comparison. - grapher.Compare
-
Comparison: left op right.
- grapher.GuardExpr
-
Base type for conditional dependency guards.
- grapher.Literal
-
A literal value in a condition.
- grapher.Neg
-
Numeric unary minus of a comparison operand.
- grapher.Not
-
Logical negation.
- grapher.Or
-
Logical OR.
- grapher.GuardCellRef
-
A cell reference used in a condition.
- grapher.GuardRangeRef
-
A multi-cell range used in an array-context condition.
- grapher.Node
-
Single workbook cell in a dependency graph.
- grapher.TacoBuildConfig
-
Controls which cells may participate in TACO range-pattern compression.
- grapher.TacoIndex
-
Parallel index of compressed range-pattern dependency edges.
- grapher.SeriesGraph
-
Series-level quotient: one node per series, cross-series edges merged.
- grapher.SeriesGraphEdge
-
Consolidated directed dependence from
sourceontotarget. - grapher.SeriesGraphNode
-
One bound series in a series-level quotient of a dependency graph.
- grapher.SheetGraph
-
Sheet-level quotient: one node per sheet, cross-sheet edges merged.
- grapher.SheetGraphEdge
-
Consolidated directed dependence from
sourceontotarget. - grapher.SheetGraphNode
-
One worksheet in a sheet-level quotient of a dependency graph.
- grapher.WorkbookCalcSettings
- grapher.GraphReadView
-
Read-only dependency-graph surface shared by graphs and projected views.
- grapher.CacheValidationPolicy
- grapher.DependencyCause
-
How a dependency edge arises from a formula.
- grapher.GraphConsistencyKind
-
Kind of formula/edge/flag disagreement.
- grapher.DynamicRefError
-
Raised when dynamic reference analysis cannot proceed.
- grapher.ExactMatchUndomainedCellWarning
-
Exact MATCH kept a lookup cell that has no cell type.
- grapher.WorkbookContextRequiredError
-
Raised when
replace_node_formulaneeds workbook context that was omitted. - grapher.CycleError
-
Raised when a cycle prevents computing evaluation order.
- grapher.GraphConsistencyError
-
Raised when
validate_consistencyfinds formula/edge disagreement. - grapher.RawFormulasRequiredError
-
TACO pattern inference needs raw workbook formulas that the graph lacks.
- grapher.ValidationResult
- grapher.normalize_blank_range_specs()
-
Normalize a sequence of sheet-qualified range strings.
- grapher.create_dependency_graph()
-
Build a dependency graph starting from target cells.
- grapher.list_dynamic_ref_constraint_candidates()
-
Return sorted leaf cells missing dynamic-ref constraint entries.
- grapher.build_graph_cache_meta()
- grapher.build_graph_cache_meta_portable()
-
Build expected cache metadata without access to the workbook file.
- grapher.save_graph_cache()
- grapher.try_load_graph_cache()
- grapher.infer_dynamic_index_targets()
-
Infer the union of all possible standalone INDEX targets for a formula.
- grapher.infer_dynamic_indirect_targets()
-
Infer the union of all possible INDIRECT targets for a formula.
- grapher.infer_dynamic_offset_targets()
-
Infer the union of all possible OFFSET targets for a formula.
- grapher.trace_dynamic_refs()
-
Activate callback as the dynamic-ref tracer for the enclosed block.
- grapher.select_path_induced_subgraph()
-
Return the induced subgraph over nodes lying on directed source->target paths.
- grapher.select_shortest_path_subgraph()
-
Return the induced subgraph over all hop-shortest paths between two nodes.
- grapher.to_graphviz()
-
Render a cell graph,
SheetGraph, orSeriesGraphas GraphViz DOT. - grapher.to_mermaid()
-
Render a cell graph,
SheetGraph, orSeriesGraphas a Mermaid flowchart. - grapher.to_networkx()
-
Convert a dependency, sheet, or series graph to a NetworkX DiGraph.
- grapher.write_lightweight_viz_data()
- grapher.write_web_viz_html()
-
Write a web visualization HTML bundle from a web-viz payload.
- grapher.warm_formula_shapes()
-
Intern punched AST shapes keyed by each formula node’s
NodeKey. - grapher.dump_graph()
-
Write
graphtopathusing the low-peak multipart pickle format. - grapher.load_graph()
-
Load a graph from
dump_graphoutput or a legacypicklestream. - grapher.make_cell_node()
-
Build a single-cell graph node.
- grapher.format_cell_key()
-
Format a (sheet, column_letters, row) triple into a canonical address.
- grapher.warm_preparsed_formulas()
-
Parse each distinct
normalized_formulaingraph. - grapher.build_taco_index()
-
Build a TACO compressed index from
graphwithout mutating it. - grapher.input_keys_from_graph()
-
Return sheet-qualified keys marked
inputingraph.leaf_classification. - grapher.to_series_graph()
-
Collapse a cell graph to one node per bound series with consolidated edges.
- grapher.to_sheet_graph()
-
Collapse a cell graph to one node per sheet with consolidated edges.
- grapher.get_calc_settings()
-
Extract calculation settings from xl/workbook.xml.
- grapher.validate_graph()
- grapher.write_workbook()
-
Write
graphto a new.xlsxatdestination. - grapher.GRAPH_CACHE_SCHEMA_VERSION
- grapher.DynamicRefTraceFn
-
Callback signature for receiving trace events.
- grapher.NodeHook
- grapher.NodeKey
- grapher.DEFAULT_MAX_RANGE_CELLS
-
Inclusive rectangular expansion budget shared by
max_range_cellsdefaults. - grapher.format_key
- grapher.needs_quoting
- semantic_model.BoundSeries
-
One bindings-catalog series with expanded cells and an index domain.
- semantic_model.CatalogOccupancy
-
Cell-to-series owner lookup without catalog construction details.
- semantic_model.KeyPoint
-
Resolved key coordinates for one series member.
- semantic_model.ScheduleIndex
-
Precomputed schedule coordinates and join fields for one catalog.
- semantic_model.SeriesCatalog
-
Bindings series keyed by id, with reverse address lookup.
- semantic_model.SeriesHole
-
One catalog cell that is not an on-graph formula.
- semantic_model.Statement
-
One formula-shape run over an ordered index domain.
- semantic_model.CatalogEdges
-
Instance-level edges for every formula series, walked once.
- semantic_model.DependenceEdge
-
One instance-level read, annotated with access class and schedule distance.
- semantic_model.SemanticCatalogLoader
-
Build a catalog view from graph + bindings + workbook.
- semantic_model.SemanticCatalogView
-
Bound catalog plus classified instance edges for one workbook.
- semantic_model.EMITTER_OWNED_CONCEPTS
-
Concepts that remain inverted-tree policy unless a second consumer needs them.
- semantic_model.EMITTER_OWNED_MODULES
-
Inverted-tree modules that stay exporter-owned (rung, fusion, codegen).
- semantic_model.SEMANTIC_CONSUMER_MODULES
-
Modules that may consume the catalog contract but not emitter policy.
- semantic_model.SHARED_CATALOG_TYPE_NAMES
-
Inventory types that visualization and inverted-tree both consume.
- semantic_model.SCHEDULE_AXIS
-
Inner ordered dimension of a keyed nest (
TIME_PERIODwhen present). - semantic_model.AccessClass
- semantic_model.Direction
- semantic_model.HoleKind
- semantic_model.Layout
- series_bindings.SeriesDomainIndex
-
Lazy
Mappingof bound addresses toCellType. - series_bindings.ResolutionIssue
-
Alias for resolution-time validation issues.
- series_bindings.AuditFinding
-
One codegen-fatal or advisory binding-resolution finding.
- series_bindings.BindingResolutionAuditReport
-
Tier-1 resolution audit across one or more binding directions.
- series_bindings.BindingBurndownReport
-
Unbound internal-formula coverage residual for a workbook graph.
- series_bindings.SeriesDomainHandle
-
Pickle/JSON pointer to the bindings sidecar that owns cell domains.
- series_bindings.BindingUpsertResult
-
Filesystem result of a successful single-series upsert.
- series_bindings.DataValidationRule
-
A worksheet
dataValidationas stored in the workbook. - series_bindings.SeriesValidationFinding
-
How a series’ bound cells compare with the workbook’s validations.
- series_bindings.ValidationDomainSuggestion
-
One validated cell and the series domain its rule implies, if any.
- series_bindings.SeriesRelationError
-
Raised when series relations cannot be compiled fail-closed.
- series_bindings.SeriesBindingsLoadError
-
Raised when binding files cannot be parsed or merged.
- series_bindings.SeriesBindingsSchemaError
-
Raised when a binding manifest fails JSON Schema validation.
- series_bindings.BindingUpsertError
-
Raised when a single-series upsert is not a valid insertion.
- series_bindings.GroupMember
-
One binding’s membership entry inside a group manifest node.
- series_bindings.GroupNode
-
One group in the nested manifest tree.
- series_bindings.GroupsManifest
-
Machine-readable group structure for catalog documentation grouping.
- series_bindings.ConstantSeries
- series_bindings.ConstantSeriesCell
- series_bindings.InputSeries
- series_bindings.InputSeriesCell
- series_bindings.InternalSeries
- series_bindings.InternalSeriesCell
- series_bindings.LeafResolution
- series_bindings.OutputSeries
- series_bindings.OutputSeriesCell
- series_bindings.ResolutionReport
- series_bindings.SeriesResolution
- series_bindings.ValidationIssue
- series_bindings.ValidationReport
- series_bindings.WorkbookSeriesBindings
-
Top-level workbook binding manifest (post-merge, post-schema validation).
- series_bindings.BindingsCheckResult
-
Result of validating a workbook against a binding sidecar.
- series_bindings.audit_binding_resolutions()
-
Resolve bindings for each direction and return a Tier-1 audit report.
- series_bindings.find_duplicate_formula_cell_bindings()
-
Flag formula cells claimed by more than one output or internal series.
- series_bindings.find_duplicate_internal_formula_cell_bindings()
-
Flag formula cells claimed by more than one internal series binding.
- series_bindings.find_sparse_label_bind_issues()
-
Flag
column_header/row_labelbinds that span blank labels without fill. - series_bindings.findings_from_resolution()
-
Map one series resolution into audit findings (Tier-1 checks).
- series_bindings.format_audit_findings()
-
Render findings as stable, human-readable worklist lines.
- series_bindings.unfilled_label_binds()
-
Return
column_header/row_labelbinds that lackfill: true. - series_bindings.collapse_unbound_cells_to_ranges()
-
Collapse addresses into maximal sheet-qualified A1 rectangles.
- series_bindings.contiguous_column_ranges()
-
Group sorted 1-based column indices into contiguous spans.
- series_bindings.find_unbound_internal_formula_cells()
-
Return formula nodes still missing input, output, or internal coverage.
- series_bindings.format_burndown_report()
-
Render a coverage worklist as stable, human-readable lines.
- series_bindings.format_row_column_spans()
-
Format one row’s contiguous column spans as sheet-qualified ranges.
- series_bindings.group_unbound_cells_by_sheet_row()
-
Bucket unbound sheet-qualified addresses by sheet and row.
- series_bindings.internal_binding_burndown()
-
Build the unbound-internal coverage worklist for a graph and sidecar.
- series_bindings.layout_hint_for_range()
-
Return a weak layout hint for a collapsed A1 coverage rectangle.
- series_bindings.layout_hint_for_span()
-
Return a weak layout hint for a rectangular coverage span.
- series_bindings.load_exempt_addresses()
-
Load reviewed sheet-qualified addresses from a text file.
- series_bindings.manifest_binding_addresses()
-
Expand binding manifests to occupancy addresses for one direction.
- series_bindings.required_internal_formula_cells()
-
Return formula nodes that are not already covered by public I/O bindings.
- series_bindings.bindings_canonical_sha256()
-
SHA-256 hex digest of the canonical binding manifest.
- series_bindings.derive_constant_series()
-
Return constant series for graph-leaf bindings.
- series_bindings.cell_type_env_from_bindings()
-
Compile a binding manifest into a lazy
CellTypeEnv. - series_bindings.undomained_leaves()
-
Return sorted graph leaves that no binding domain covers.
- series_bindings.bindings_export_order()
-
Return series entries in grouped export order.
- series_bindings.bindings_have_groups()
-
Return True when any series declares at least one group ref.
- series_bindings.group_manifest()
-
Build the nested group manifest used for documentation sequencing.
- series_bindings.group_slug()
-
Derive a Python-identifier-safe slug from a human-readable group label.
- series_bindings.coerce_setter_input()
-
Normalize caller input into canonical record dicts.
- series_bindings.derive_input_series()
-
Return one input series per binding series with graph-leaf or override overlap.
- series_bindings.derive_internal_series()
-
Return internal series for formula-cell key triangulation without public I/O APIs.
- series_bindings.load_series_bindings()
-
Load a binding sidecar file or directory of shards.
- series_bindings.merge_series_binding_documents()
-
Merge partial manifests (e.g. one per sheet) into one workbook document.
- series_bindings.parse_bindings_file()
-
Parse one binding sidecar file (YAML or JSON) without schema validation.
- series_bindings.has_constant_direction()
-
Return True when the series declares constant (leaf) semantics.
- series_bindings.has_input_direction()
-
Return True when the series declares an input direction block.
- series_bindings.has_internal_direction()
-
Return True when the series declares internal (non-I/O) binding semantics.
- series_bindings.has_output_direction()
- series_bindings.is_cataloged_series()
-
Return True when inverted-tree catalog/codegen includes this series.
- series_bindings.merge_series_entries()
-
Merge two series entries with the same id from different shards.
- series_bindings.normalize_bindings_document()
-
Normalize all series entries in a binding manifest.
- series_bindings.normalize_series_entry()
-
Return a copy with legacy aliases normalized for schema validation.
- series_bindings.derive_output_series()
-
Return one output series per binding entry with output.compute and graph overlap.
- series_bindings.expand_data_range()
-
Expand a binding
data_rangeto canonical sheet-qualified cell addresses. - series_bindings.expand_data_range_for_graph()
-
Expand
data_rangeusing named-range maps (and optional workbook) from a graph. - series_bindings.series_data_ranges()
-
Return the series
data_rangeas a list of range strings. - series_bindings.bound_label_addresses()
-
Return label, header, and
kind: cellsource cells used bybindings. - series_bindings.resolve_series_binding()
-
Resolve each participating cell in a series binding to coordinates and record fields.
- series_bindings.resolve_series_bindings()
-
Resolve all series in a binding manifest for the given direction.
- series_bindings.format_schema_errors()
-
Return human-readable schema error strings (for tests and CLI).
- series_bindings.validate_bindings_document()
-
Validate
documentagainst the series binding JSON Schema. - series_bindings.bootstrap_binding_shards()
-
Create empty four-file sidecar shards when missing.
- series_bindings.upsert_series_binding()
-
Insert or replace one series after fail-closed checks.
- series_bindings.validate_series_bindings()
-
Validate binding manifests against an extracted dependency graph.
- series_bindings.compare_series_validation_domains()
-
Compare each series’ bound cells with the workbook’s validations.
- series_bindings.suggest_validation_domains()
-
Report the domain each validated cell’s data validation implies.
- series_bindings.validation_cell_type_env()
-
Compile
domainsuggestions into a caller-ownedCellTypeEnv. - series_bindings.is_bind_implemented()
- series_bindings.is_layout_implemented()
- series_bindings.all_series_targets()
-
Expand every series
data_rangeinto graph target addresses. - series_bindings.output_series_targets()
-
Expand only
outputseriesdata_ranges into graph target addresses. - series_bindings.run_binding_checks()
-
Validate bindings, optionally smoke-test generated public functions.
- series_bindings.series_binding_public_addresses()
-
Return normalized addresses published by series binding
data_ranges. - series_bindings.target_set_sha256()
-
Return a stable SHA-256 fingerprint of a graph target set.
- series_bindings.validate_bindings_workbook()
-
Load bindings, build the graph, and validate against the workbook.
- series_bindings.DIRECTIONS
- series_bindings.Layout
- series_bindings.SeriesInput
- series_bindings.Record
- series_bindings.Records
- series_bindings.Scalar
- series_bindings.ValidationLevel
- series_bindings.SHARD_FILENAMES
- series_bindings.CURRENT_SCHEMA_VERSION
- series_bindings.IMPLEMENTED_BIND_KINDS
- series_bindings.IMPLEMENTED_LAYOUTS
- series_bindings.SUPPORTED_SCHEMA_VERSIONS
- series_bindings.TargetsFrom
-
Which series seed graph extraction: every series, or only
outputseries.
Exporter API
Export and extension APIs under excel_grapher.exporter
- exporter.CodeGenerator
-
Generate inverted-tree packages from a
DependencyGraph. - exporter.IdentityTransitCompression
-
Collapse pure identity transit nodes into a projected export graph.
- exporter.ProjectionStep
-
Projection step that builds a
ProjectionResultfrom a graph. - exporter.ProjectionResult
-
Projected graph facade with durable lineage back to the canonical graph.
- exporter.ProjectionManifest
-
Stable contract a projection manifest exposes to export and composition.
- exporter.BaseProjectionManifest
-
General, serializable projection manifest for node-collapsing projections.
- exporter.CompositeProjectionManifest
-
Lineage for a sequence of composed projection steps.
- exporter.ProjectedNodeSnapshot
-
Workbook node state captured before projection removes or rewrites it.
- exporter.FormulaRewrite
-
Dependent formula rewrite performed during projection.
- exporter.CollapsedGroup
-
Source nodes that folded into one retained computation address.
- exporter.apply_projection()
-
Apply one or more projection steps, returning the final projection result.
- exporter.build_forwarding_projection_manifest()
-
Build a
BaseProjectionManifestfrom a graph compressionrecord. - exporter.register_projection_manifest()
-
Register a
from_dictdeserializer for projection manifests ofkind. - exporter.resolve_projection_manifest()
-
Deserialize a manifest by dispatching on its
kindvia the registry. - exporter.unregister_projection_manifest()
-
Remove a registered projection manifest
kind(no-op if absent). - exporter.WebVizPayload
- exporter.to_web_viz_payload()
-
Build a web-visualization payload from a dependency graph.
- exporter.to_series_graph()
-
Collapse a cell graph to one node per bound series.
- exporter.LAYOUT_FORCEATLAS2
- exporter.LAYOUT_GRAPHVIZ_DOT
- exporter.LAYOUT_GRAPHVIZ_SFDP
- exporter.LAYOUT_SPRING
- exporter.LAYOUT_CLUSTERED_FORCE
- exporter.WebVizLayoutPlugin
- exporter.WebVizLayoutSpec
- exporter.list_web_viz_layouts()
- exporter.register_web_viz_layout()
- exporter.resolve_web_viz_layout()
-
Look up a registered layout ID or return a direct layout plugin.
- exporter.unregister_web_viz_layout()
-
Remove a registered layout plugin (for tests and notebook cleanup).
Grapher Namespaced API
Public grapher APIs available under excel_grapher.grapher
- grapher.DependencyCause
-
How a dependency edge arises from a formula.
- grapher.EdgeProvenance
-
Metadata for a single directed edge, possibly from multiple mechanisms in one formula.
- grapher.LightweightVizLocalEdges
- grapher.LightweightVizModule
- grapher.LightweightVizModuleEdge
- grapher.GRAPH_CACHE_SCHEMA_VERSION
- grapher.DynamicRefTraceFn
-
Callback signature for receiving trace events.
- grapher.GraphReadView
-
Read-only dependency-graph surface shared by graphs and projected views.
- grapher.NodeHook
- grapher.NodeKey
- grapher.infer_dynamic_index_targets()
-
Infer the union of all possible standalone INDEX targets for a formula.
- grapher.infer_dynamic_indirect_targets()
-
Infer the union of all possible INDIRECT targets for a formula.
- grapher.infer_dynamic_offset_targets()
-
Infer the union of all possible OFFSET targets for a formula.
Series Bindings API
Series binding manifest and codegen APIs
- series_bindings.InputSeries
- series_bindings.InputSeriesCell
- series_bindings.OutputSeries
- series_bindings.OutputSeriesCell
- series_bindings.Record
- series_bindings.Records
- series_bindings.Scalar
- series_bindings.LeafResolution
- series_bindings.ResolutionIssue
-
Alias for resolution-time validation issues.
- series_bindings.ResolutionReport
- series_bindings.SeriesResolution
- series_bindings.ValidationIssue
- series_bindings.ValidationLevel
- series_bindings.ValidationReport
- series_bindings.WorkbookSeriesBindings
-
Top-level workbook binding manifest (post-merge, post-schema validation).
- series_bindings.IMPLEMENTED_BIND_KINDS
- series_bindings.IMPLEMENTED_LAYOUTS
- series_bindings.SUPPORTED_SCHEMA_VERSIONS
- series_bindings.bindings_canonical_sha256()
-
SHA-256 hex digest of the canonical binding manifest.
- series_bindings.derive_input_series()
-
Return one input series per binding series with graph-leaf or override overlap.
- series_bindings.derive_output_series()
-
Return one output series per binding entry with output.compute and graph overlap.
- series_bindings.has_input_direction()
-
Return True when the series declares an input direction block.
- series_bindings.has_output_direction()
- series_bindings.merge_series_entries()
-
Merge two series entries with the same id from different shards.
- series_bindings.normalize_bindings_document()
-
Normalize all series entries in a binding manifest.
- series_bindings.normalize_series_entry()
-
Return a copy with legacy aliases normalized for schema validation.
- series_bindings.expand_data_range()
-
Expand a binding
data_rangeto canonical sheet-qualified cell addresses. - series_bindings.expand_data_range_for_graph()
-
Expand
data_rangeusing named-range maps (and optional workbook) from a graph. - series_bindings.format_schema_errors()
-
Return human-readable schema error strings (for tests and CLI).
- series_bindings.load_series_bindings()
-
Load a binding sidecar file or directory of shards.
- series_bindings.merge_series_binding_documents()
-
Merge partial manifests (e.g. one per sheet) into one workbook document.
- series_bindings.parse_bindings_file()
-
Parse one binding sidecar file (YAML or JSON) without schema validation.
- series_bindings.resolve_series_binding()
-
Resolve each participating cell in a series binding to coordinates and record fields.
- series_bindings.resolve_series_bindings()
-
Resolve all series in a binding manifest for the given direction.
- series_bindings.validate_bindings_document()
-
Validate
documentagainst the series binding JSON Schema. - series_bindings.validate_series_bindings()
-
Validate binding manifests against an extracted dependency graph.
- series_bindings.is_bind_implemented()
- series_bindings.is_layout_implemented()
Classes
Main classes provided by the package
- CodeGenerator
-
Generate inverted-tree packages from a
DependencyGraph. - ParseError
-
Raised when a formula cannot be parsed into an AST.
CodeGenerator Methods
Methods for the CodeGenerator class
- CodeGenerator.__enter__()
- CodeGenerator.__exit__()
- CodeGenerator.derive_input_series()
-
Derive input-series metadata from explicit series bindings.
- CodeGenerator.generate_modules()
-
Generate a standalone package with explicit input-leaf computes.
Dataclasses
Dataclass definitions
- And
-
Logical AND.
- Compare
-
Comparison: left op right.
- CycleReport
-
Result of cycle analysis.
- DependencyGraph
-
Mutable workbook dependency graph.
- DynamicRefConfig
-
Configuration for resolving OFFSET/INDIRECT via constraint-based inference.
- DynamicRefLimits
-
Tuneable safety limits for dynamic-reference inference.
- DynamicRefTraceEvent
-
A single trace event emitted during dynamic-ref inference.
- ExcelRange
-
Rectangular worksheet reference geometry for evaluator and export.
- FormulaEvaluator
-
Evaluate Excel formulas over a
DependencyGraph. - GreaterThanCell
-
Metadata marker: the annotated cell is always greater than another cell.
- GuardCellRef
-
A cell reference used in a condition.
- GuardExpr
-
Base type for conditional dependency guards.
- LightweightVizPayload
- Literal
-
A literal value in a condition.
- Node
-
Single workbook cell in a dependency graph.
- Not
-
Logical negation.
- NotEqualCell
-
Metadata marker: the annotated cell is never equal to another cell.
- Or
-
Logical OR.
- RealBetween
-
Real-valued interval constraint for Annotated float types (not enumerable for dynamic refs).
- RealIntervalDomain
-
Closed real-valued interval metadata; not enumerable for dynamic-ref branching.
- WorkbookCalcSettings
FormulaEvaluator Methods
Methods for the FormulaEvaluator class
- FormulaEvaluator.__post_init__()
- FormulaEvaluator.__enter__()
- FormulaEvaluator.__exit__()
- FormulaEvaluator.clear_caches()
-
Clear cached cell values and parsed formula ASTs.
- FormulaEvaluator.ast_cache_info()
-
Return hit/miss statistics for the AST parse cache.
- FormulaEvaluator.evaluate()
Node Methods
Methods for the Node class
- Node.__setattr__()
- Node.set_metadata()
-
Replace this node’s metadata with a copy of
metadata. - Node.update_metadata()
-
Merge
updatesinto this node’s metadata, allocating on first write. - Node.key
- Node.shape
- Node.column_index
- Node.normalized_formula
-
Absolute A1 formula text derived from
formula_ast, or unparseable fallback. - Node.has_formula
-
True when this cell has a formula AST or unparseable formula text.
- Node.key_point()
-
Resolved key coordinates for this cell in
catalog, orNoneif unbound. - Node.dimension_binds()
-
Series-level dimension binds for this cell in
catalog, orNoneif unbound. - Node.apply_formula_text()
-
Parse
textintoformula_ast, or keep it as unparseable fallback.
DependencyGraph Methods
Methods for the DependencyGraph class
- DependencyGraph.add_node()
- DependencyGraph.__contains__()
- DependencyGraph.__iter__()
- DependencyGraph.__len__()
- DependencyGraph.keys()
-
Return node keys from
source(or the graph) using the selected order. - DependencyGraph.add_edge()
-
Add edge: from_key depends on to_key (from_key -> to_key).
- DependencyGraph.get_node()
-
Return an immutable
NodeViewsnapshot, orNoneif missing. - DependencyGraph.get_dependencies()
-
Return an immutable snapshot of
key’s dependencies (cells it reads). - DependencyGraph.get_dependents()
-
Return an immutable snapshot of cells that depend on
key. - DependencyGraph.get_edge_attrs()
-
Return a typed snapshot of the attributes on edge
from_key -> to_key. - DependencyGraph.get_edge_guard()
-
Return the guard on edge
from_key -> to_key, orNoneif none. - DependencyGraph.set_node_value()
-
Set a node’s
valuefield durably. RaisesKeyErrorif missing. - DependencyGraph.set_node_metadata()
-
Replace a node’s metadata mapping durably.
- DependencyGraph.register_hook()
- DependencyGraph.leaves()
-
Iterate over keys of leaf nodes (no dependencies).
- DependencyGraph.formula_nodes()
-
Iterate over (key, node) pairs for nodes that contain formulas.
- DependencyGraph.leaf_node_items()
-
Iterate over (key, node) pairs for leaf nodes (no cell dependencies).
- DependencyGraph.formula_keys()
-
Return sorted list of keys for nodes that contain formulas.
- DependencyGraph.leaf_keys()
-
Return sorted list of keys for nodes with no dependency edges (leaves).
- DependencyGraph.target_keys()
-
Return sorted list of keys marked as original build targets.
- DependencyGraph.roots()
-
Iterate keys with no in-graph dependents.
- DependencyGraph.cycle_report()
-
Classify must-cycles vs may-cycles, dropping guard-infeasible SCCs.
- DependencyGraph.evaluation_order()
-
Return nodes in dependency-first order (leaves before formulas that use them).
- DependencyGraph.compress_identity_transits()
-
Remove identity transit nodes and rewire dependents.
Enumerations
Enumeration types
Exceptions
Exception classes
- CycleError
-
Raised when a cycle prevents computing evaluation order.
- DynamicRefError
-
Raised when dynamic reference analysis cannot proceed.
- SeriesBindingsLoadError
-
Raised when binding files cannot be parsed or merged.
- SeriesBindingsSchemaError
-
Raised when a binding manifest fails JSON Schema validation.
Named Tuples
Named tuple definitions
Typed Dicts
TypedDict definitions
Functions
Utility functions
- bindings_canonical_sha256()
-
SHA-256 hex digest of the canonical binding manifest.
- build_graph_cache_meta()
- build_graph_cache_meta_portable()
-
Build expected cache metadata without access to the workbook file.
- create_dependency_graph()
-
Build a dependency graph starting from target cells.
- format_cell_key()
-
Format a (sheet, column_letters, row) triple into a canonical address.
- get_calc_settings()
-
Extract calculation settings from xl/workbook.xml.
- list_dynamic_ref_constraint_candidates()
-
Return sorted leaf cells missing dynamic-ref constraint entries.
- load_series_bindings()
-
Load a binding sidecar file or directory of shards.
- needs_quoting
- normalize_blank_range_specs()
-
Normalize a sequence of sheet-qualified range strings.
- resolve_series_bindings()
-
Resolve all series in a binding manifest for the given direction.
- save_graph_cache()
- select_path_induced_subgraph()
-
Return the induced subgraph over nodes lying on directed source->target paths.
- select_shortest_path_subgraph()
-
Return the induced subgraph over all hop-shortest paths between two nodes.
- to_graphviz()
-
Render a cell graph,
SheetGraph, orSeriesGraphas GraphViz DOT. - to_mermaid()
-
Render a cell graph,
SheetGraph, orSeriesGraphas a Mermaid flowchart. - to_networkx()
-
Convert a dependency, sheet, or series graph to a NetworkX DiGraph.
- to_series_graph()
-
Collapse a cell graph to one node per bound series.
- to_sheet_graph()
-
Collapse a cell graph to one node per sheet with consolidated edges.
- to_web_viz_payload()
-
Build a web-visualization payload from a dependency graph.
- trace_dynamic_refs()
-
Activate callback as the dynamic-ref tracer for the enclosed block.
- try_load_graph_cache()
- validate_graph()
- validate_series_bindings()
-
Validate binding manifests against an extracted dependency graph.
- write_lightweight_viz_data()
- write_web_viz_html()
-
Write a web visualization HTML bundle from a web-viz payload.
Constants
Module-level constants and data