cadrumo.application.storage.calc_sheets package¶
Workbook export planning engine for modelo registry snapshots.
Translates a
domain.calculations.registry.schema.RegistrySnapshot into a
application.storage.calc_sheets.records.SheetExportPlan whose formulas
produce the same per-casilla rounded values as the local registry runtime. The
plan is consumed by the Google Sheets apply adapter, so layout, formulas,
styling, provenance, and evidence stay on one contract.
The package exposes three layers:
Records (
application.storage.calc_sheets.records) — strict frozen pydantic v2 types describing the workbook the engine intends to produce. The records are the shared vocabulary between the engine driver, the apply adapter, the parity oracle, and the pull adapter.Translator (
application.storage.calc_sheets._translator) — pure function that walks a registrydomain.calculations.registry.schema_formula.FormulaExpressionAST and emits a Sheets A1 formula string, resolving casilla references through the layout planner.Engine driver (
application.storage.calc_sheets.engine) — consumes adomain.calculations.registry.schema.RegistrySnapshotplus a caller-suppliedapplication.storage.calc_sheets.records.OperatorInputspayload and assembles aapplication.storage.calc_sheets.records.SheetExportPlanready for the apply adapter.Export tables (
application.storage.calc_sheets.export_tables) — owns the Guide and Evidencia values consumed by the live apply adapter.
Operator-facing CLI surface lives under src/cadrumo/entrypoints/cli/config/google.py; this package contains domain and application logic only.
See also
domain.calculations.registry.schema.RegistrySnapshotRegistry-authored calculation surface compiled by the engine.
application.storage.calc_sheets.records.SheetExportPlanShared workbook plan consumed by online and offline renderers.
application.storage.calc_sheets.export_tables.evidence_table()Evidencia values consumed by the live apply adapter.
Submodules¶
- cadrumo.application.storage.calc_sheets._parity_comparison module
- cadrumo.application.storage.calc_sheets._styling module
- cadrumo.application.storage.calc_sheets._translator module
- cadrumo.application.storage.calc_sheets.casilla_parity module
- cadrumo.application.storage.calc_sheets.engine module
- cadrumo.application.storage.calc_sheets.errors module
- cadrumo.application.storage.calc_sheets.evidence module
- cadrumo.application.storage.calc_sheets.export_service module
- cadrumo.application.storage.calc_sheets.export_tables module
- cadrumo.application.storage.calc_sheets.layout module
- Layout strategy
BracketRangesSheetLayoutSheetLayout.revision_idSheetLayout.entradas_cellsSheetLayout.calculos_cellsSheetLayout.binding_cellsSheetLayout.date_binding_cellsSheetLayout.filing_yearSheetLayout.parameter_cellsSheetLayout.relation_cellsSheetLayout.entradas_rowsSheetLayout.calculos_rowsSheetLayout.binding_rowsSheetLayout.tariff_anchorsSheetLayout.bracket_rangesSheetLayout.bracket_entriesSheetLayout.address_for()SheetLayout.address_for_binding()SheetLayout.address_for_date_binding()
plan_layout()
- cadrumo.application.storage.calc_sheets.parity_harness module
- cadrumo.application.storage.calc_sheets.records module
- A1 addressing
TabNamecolumn_index_to_letters()column_letters_to_index()SheetCellAddressSheetValueCellSheetRoundingRuleSheetRoundingRuleValueSheetFormulaCellSheetCellConstraintSheetRowSetColumnSheetRowSetSheetProtectedRangeSheetNumberFormatSheetSectionHeaderSheetAnchorSheetStyledRangeSheetColumnWidthSheetFrozenViewSheetAutoFilterSheetProvenanceRowSheetEvidenceContributorRowSheetEvidenceContributorRow.casilla_idSheetEvidenceContributorRow.transaction_idSheetEvidenceContributorRow.amountSheetEvidenceContributorRow.currencySheetEvidenceContributorRow.fx_rateSheetEvidenceContributorRow.value_in_eurSheetEvidenceContributorRow.taxable_baseSheetEvidenceContributorRow.iva_rateSheetEvidenceContributorRow.iva_amountSheetEvidenceContributorRow.counterpartySheetEvidenceContributorRow.attachment_idsSheetEvidenceContributorRow.document_link_idsSheetEvidenceContributorRow.legal_refsSheetEvidenceContributorRow.source_refs
SheetEvidenceManualEntrySheetEvidenceFacetSheetTariffTableRowSheetTariffTableParameterCellOperatorInputOperatorInputsSheetRelationProvenanceSheetRelationProvenanceValueRelationValueRelationValue.relationRelationValue.valueRelationValue.dependency_treatmentRelationValue.provenanceRelationValue.source_modeloRelationValue.source_filing_yearRelationValue.source_periodsRelationValue.source_casilla_idsRelationValue.legal_refsRelationValue.source_refsRelationValue.resolved_atRelationValue.note
RelationValuesSheetGuideContentSheetExportMetadataSheetExportPlanSheetExportPlan.metadataSheetExportPlan.value_cellsSheetExportPlan.formula_cellsSheetExportPlan.tariffsSheetExportPlan.provenanceSheetExportPlan.protected_rangesSheetExportPlan.number_formatsSheetExportPlan.section_headersSheetExportPlan.anchorsSheetExportPlan.cell_constraintsSheetExportPlan.row_setsSheetExportPlan.relation_provenanceSheetExportPlan.evidenceSheetExportPlan.font_familySheetExportPlan.styled_rangesSheetExportPlan.column_widthsSheetExportPlan.frozen_viewsSheetExportPlan.auto_filtersSheetExportPlan.guideSheetExportPlan.all_addresses()
- cadrumo.application.storage.calc_sheets.row_set_assembly module
- cadrumo.application.storage.calc_sheets.theme module