ACN (Australian Company Number).

The Australian Company Number (ACN) is a company identifier issued by the Australian Securities and Investments Commission.

More information:

>>> validate('004 085 616')
>>> validate('010 499 966')
>>> validate('999 999 999')
Traceback (most recent call last):
InvalidChecksum: ...
>>> format('004085616')
'004 085 616'
>>> to_abn('002 724 334')

Calculate the checksum.

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

Reformat the number to the standard presentation format.

Check if the number is a valid ACN.

Convert the number to an Australian Business Number (ABN).

Check if the number is a valid ACN. This checks the length, formatting and check digit.