stdnum.li.peid¶
PEID (Liechtenstein tax code for individuals and entities).
The Personenidentifikationsnummer (PEID) is an numeric code up to 12 digits used to identify entities and individuals residing in Liechtenstein.
More information:
>>> compact('00001234567')
'1234567'
>>> validate('1234567') # personal number or entity number
'1234567'
>>> validate('00001234567')
'1234567'
>>> validate('00001234568913454545')
Traceback (most recent call last):
...
InvalidLength: The number has an invalid length.
- stdnum.li.peid.compact(number)¶
Convert the number to the minimal representation. This strips the number of any valid separators and removes surrounding whitespace.
- stdnum.li.peid.is_valid(number)¶
Check if the given fiscal code is valid.
- stdnum.li.peid.validate(number)¶
Check if the given fiscal code is valid.