stdnum.ro.onrc

ONRC (Ordine din Registrul Comerţului, Romanian Trade Register identifier).

All businesses in Romania have the to register with the National Trade Register Office to receive a registration number. The number contains information about the type of company, county, a sequence number and registration year. This number can change when registration information changes.

>>> validate('J52/750/2012')
'J52/750/2012'
>>> validate('X52/750/2012')
Traceback (most recent call last):
    ...
InvalidComponent: ...
stdnum.ro.onrc.compact(number)

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

stdnum.ro.onrc.is_valid(number)

Check if the number is a valid ONRC.

stdnum.ro.onrc.validate(number)

Check if the number is a valid ONRC.