stdnum.ie.pps

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.

>>> compact('6433435F')
'6433435F'
>>> is_valid('6433435F')
True
>>> is_valid('6433435E')  # incorrect check digit
False
stdnum.ie.pps.compact(number)

Convert the number to the minimal representation. This strips the number of any valid separators and removes surrounding whitespace.

stdnum.ie.pps.is_valid(number)

Checks to see if the number provided is a valid PPS number. This checks the length, formatting and check digit.

stdnum.ie.pps.pps_re = <_sre.SRE_Pattern object at 0x8e01278>

Regular expression used to check syntax of PPS numbers.

Previous topic

stdnum.iban

Next topic

stdnum.ie.vat