aeat.domain.calculations.registry._period_selector_match module

Period-selector matching helpers for registry revision selection.

selector_period_matches_request(selector_period, requested_period)[source]

Return whether one selector token covers an operator/request token.

Return type:

bool

Parameters:
  • selector_period (str)

  • requested_period (str)

selector_token_for_request(selector_periods, requested_period)[source]

Return the declared selector token matching a requested period, if any.

Return type:

str | None

Parameters:
registry_period_for_request(selector_periods, requested_period)[source]

Return the concrete registry period to use for a requested scope.

Return type:

str | None

Parameters: