stdnum.at.businessid¶
Austrian Company Register Numbers.
The Austrian company register number consist of digits followed by a single letter, e.g. “122119m”. Sometimes it is presented with preceding “FN”, e.g. “FN 122119m”.
>>> validate('FN 122119m')
'122119m'
>>> validate('122119m')
'122119m'
>>> validate('m123123')
Traceback (most recent call last):
...
InvalidFormat: ...
>>> validate('abc')
Traceback (most recent call last):
...
InvalidFormat: ...
- stdnum.at.businessid.compact(number)¶
Convert the number to the minimal representation. This strips the number of any valid separators and removes surrounding whitespace. Preceding “FN” is also removed.
- stdnum.at.businessid.is_valid(number)¶
Check if the number is a valid company register number.
- stdnum.at.businessid.validate(number)¶
Check if the number is a valid company register number. This only checks the formatting.