aeat.core.resources._repos.iva_catalogues module¶
Year-keyed IVA regulation-catalogue repository.
IvaCatalogueRepository is the ResourceCacheRepository adapter
for bundled IVA catalogues and the resource factory’s IVA-catalogue root
override.
- class IvaCatalogueRepository(root=None)[source]¶
Bases:
ResourceCacheRepository[object,int]Year-keyed repository for the bundled IVA regulation catalogue.
Wraps
aeat.domain.iva._catalogue.load_iva_catalogues(). The Settings env-override seam forAEAT_IVA_CATALOGUE_ROOTis threaded through the constructor’srootparameter; theaeat.core.resources.resources()factory reads Settings and passes the resolved root once at construction. Missing years raiseResourceNotFoundError.- Parameters:
root (Path | None)