PPS No (Personal Public Service Number, Irish personal number).
The Personal Public Service number consists of 8 digits. The first seven are numeric and the last is the check character. The number is sometimes be followed by an extra letter that can be a ‘W’, ‘T’ or an ‘X’ and is ignored for the check algorithm.
>>> validate('6433435F')
'6433435F'
>>> validate('6433435E') # incorrect check digit
Traceback (most recent call last):
...
InvalidChecksum: ...
Convert the number to the minimal representation. This strips the number of any valid separators and removes surrounding whitespace.
Checks to see if the number provided is a valid PPS number. This checks the length, formatting and check digit.
Regular expression used to check syntax of PPS numbers.
Checks to see if the number provided is a valid PPS number. This checks the length, formatting and check digit.