aeat.adapters.inbound.borrador._extractors package¶
Per-año Modelo 100 observed-value extractor registry.
Registers the concrete extractor classes (one per tax year) and exposes
get_extractor() for the public
adapters.inbound.borrador.parse_borrador() entry point.
The observed-value extraction logic is year-agnostic across the currently
registered 2021-2025 extractor years: AEAT Renta Web Open borrador PDFs print
casilla rows with the same NNNN label amount format. A single concrete class
covers those supported years; per-year entries in the registry signal which
years are in scope without requiring distinct class implementations for each.
This registry is an adapter dispatch table, not a registry-authority lookup.
Callers that need target-casilla coverage still provide a
adapters.inbound.borrador.BorradorExtractionProfile to
the public parser.
See also
adapters.inbound.borrador._extractors.modelo_100_summary_v2025.Modelo100ObservedV2025ExtractorCurrent year-stable implementation used by every registered year.
adapters.inbound.borrador.BorradorParseModeCaller-selected observed versus registry-profile validation mode.
- get_extractor(año)[source]¶
Return a fresh Modelo 100 observed-value extractor for the given tax year.
- Parameters:
año (
int) – The four-digit tax year for which an extractor is required.- Return type:
- Returns:
A freshly instantiated extractor registered for the requested
año.- Raises:
_BorradorParseError – When no extractor is registered for
año.