aeat.adapters.persistence.profile._modelo_runtime module

Runtime-backed repository helpers shared by the modelo persistence adapters.

Shared private helpers for the sibling modelo catalogue repositories (modelos_calculation, modelos_filing, modelos_work_units, modelos_verification_reports, and participation_index): a bucket-id resolver and a runtime factory that returns a SecureObjectRepository bound to the active profile bucket. Both live in the persistence adapter alongside the repositories they serve, so the secure-object coupling is a same-layer adapters -> adapters.persistence.storage import rather than a domain -> adapters violation.

See also

resolve_repository_bucket_id()

Shared resolver for explicit-or-active profile bucket ids.

secure_object_repository_for_bucket()

Runtime storage factory used after the modelo bucket id is resolved.

modelos_calculation

Calculation-revision repository consumer of these modelo helpers.

participation_index

Participation-index repository consumer with the same runtime boundary.

CalculationRevisionCatalogueRepositoryProtocol

Domain repository port implemented by the calculation-revision adapter.

resolve_modelo_repository_bucket_id(bucket_id, *, error_type)[source]

Return an explicit or active profile bucket id for modelo repositories.

Return type:

str

Parameters:
secure_objects_for_modelo_bucket(bucket_id)[source]

Return runtime-created secure-object storage for bucket_id.

Return type:

SecureObjectRepository

Returns:

A SecureObjectRepository scoped to the given modelo bucket.

Parameters:

bucket_id (str)