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.

>>> validate('6433435F')
'6433435F'
>>> validate('6433435E')  # incorrect check digit
Traceback (most recent call last):
    ...
InvalidChecksum: ...
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 0x9a957f0>

Regular expression used to check syntax of PPS numbers.

stdnum.ie.pps.validate(number)

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

Previous topic

stdnum.iban

Next topic

stdnum.ie.vat