aeat.application.storage.calc_sheets package¶
Workbook export planning engine for modelo registry snapshots.
Translates a
domain.calculations.registry.RegistrySnapshot into a
application.storage.calc_sheets.SheetExportPlan whose formulas
produce the same per-casilla rounded values as the local registry runtime. The
plan is shared by the Google Sheets apply adapter and the offline XLSX
materializer, 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.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.RegistrySnapshotplus a caller-suppliedapplication.storage.calc_sheets.OperatorInputspayload and assembles aapplication.storage.calc_sheets.SheetExportPlanready for the apply adapter.Offline export (
application.storage.calc_sheets._workbook_export) — serializes the same plan into XLSX bytes plus the machine-readable evidence sidecar.
Operator-facing CLI surface lives under src/aeat/entrypoints/cli/_config/_google.py; this package contains domain and application logic only.
See also
domain.calculations.registry.RegistrySnapshotRegistry-authored calculation surface compiled by the engine.
application.storage.calc_sheets.SheetExportPlanShared workbook plan consumed by online and offline renderers.
application.storage.calc_sheets.serialize_offline_export()Offline XLSX plus evidence-sidecar serializer for operator-directed exports.
Submodules¶
- aeat.application.storage.calc_sheets._engine module
- aeat.application.storage.calc_sheets._errors module
- aeat.application.storage.calc_sheets._evidence module
- aeat.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()SheetLayout.address_for_relation()
plan_layout()
- aeat.application.storage.calc_sheets._parity_harness module
- aeat.application.storage.calc_sheets._records module
- A1 addressing
TabNameSheetCellAddressSheetValueCellSheetFormulaCellSheetCellConstraintSheetRowSetColumnSheetRowSetSheetProtectedRangeSheetNumberFormatSheetSectionHeaderSheetAnchorSheetStyledRangeSheetColumnWidthSheetFrozenViewSheetAutoFilterSheetProvenanceRowSheetEvidenceContributorRowSheetEvidenceContributorRow.casilla_idSheetEvidenceContributorRow.transaction_idSheetEvidenceContributorRow.amountSheetEvidenceContributorRow.currencySheetEvidenceContributorRow.taxable_baseSheetEvidenceContributorRow.iva_rateSheetEvidenceContributorRow.iva_amountSheetEvidenceContributorRow.counterpartySheetEvidenceContributorRow.attachment_idsSheetEvidenceContributorRow.document_link_idsSheetEvidenceContributorRow.legal_refsSheetEvidenceContributorRow.source_refs
SheetEvidenceManualEntrySheetEvidenceFacetSheetTariffTableRowSheetTariffTableParameterCellOperatorInputOperatorInputsRelationValueRelationValuesSheetGuideContentSheetExportMetadataSheetExportPlanSheetExportPlan.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()
- aeat.application.storage.calc_sheets._styling module
- aeat.application.storage.calc_sheets._theme module
- aeat.application.storage.calc_sheets._translator module
- aeat.application.storage.calc_sheets._workbook_export module
OfflineWorkbookEvidenceSidecarOfflineWorkbookExportResultOfflineWorkbookExportResult.workbook_payloadOfflineWorkbookExportResult.workbook_media_typeOfflineWorkbookExportResult.workbook_filename_extensionOfflineWorkbookExportResult.workbook_sha256OfflineWorkbookExportResult.evidence_sidecar_payloadOfflineWorkbookExportResult.evidence_sidecar_media_typeOfflineWorkbookExportResult.evidence_sidecar_filename_extensionOfflineWorkbookExportResult.evidence_sidecar_sha256
evidence_table()build_offline_workbook()build_evidence_sidecar()serialize_evidence_sidecar()serialize_offline_workbook()serialize_offline_export()