woob.tools.capabilities.bank.sortcode

class SortCodeAccountNumber(selector=None, default=_NO_DEFAULT)[source]

Bases: Filter

Return the input only if it is a valid Sortcode account number.

filter(code)[source]

This method has to be overridden by children classes.

exception SortCodeAccountNumberFormatError[source]

Bases: FilterError

canonicalize_sort_code_account_number(arg)[source]

Return the canonical form of the given sort code account number.

This function also checks if the provided sort code account number is valid, and raises a ValueError in case it is not.