aeat.core.resources._repos.category_profiles module

Year-keyed spending-category profile repository.

CategoryProfileRepository adapts category-profile lookups to the ResourceCacheRepository interface aggregated by ResourceRegistry.

class CategoryProfileRepository[source]

Bases: ResourceCacheRepository[Mapping[SpendingCategory, CategoryProfile], int]

Year-keyed repository for spending-category profile registries.

Wraps aeat.domain.categories.resolve_category_profiles() and returns mappings from SpendingCategory to CategoryProfile.