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 for AEAT_IVA_CATALOGUE_ROOT is threaded through the constructor’s root parameter; the aeat.core.resources.resources() factory reads Settings and passes the resolved root once at construction. Missing years raise ResourceNotFoundError.

Parameters:

root (Path | None)