Skip to main content

This package validates Australian Business Numbers (ABNs) and converts Australian Company Numbers (ACNs) or Australian Registered Body Numbers (ARBNs) to ABNs.

The following example show checking of a valid and an invalid ABN:

>>> import abn
>>> abn.validate('53004085616')
'53 004 085 616'

>>> abn.validate('99999999999')
False

To calculate the ABN based on an existing ACN or ARBN:

>>> abn.acn_to_abn('004085616')
'53 004 085 616'

To run the tests:

$ python tests.py

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ABN-0.3.3.tar.gz (2.4 kB view details)

Uploaded Source

File details

Details for the file ABN-0.3.3.tar.gz.

File metadata

  • Download URL: ABN-0.3.3.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ABN-0.3.3.tar.gz
Algorithm Hash digest
SHA256 d756bde2b39d46b3d09e888dcc360b2f348bdbc6c833d8550feda3a38a6f0076
MD5 f8652a9025f3111e794d523cee62571b
BLAKE2b-256 0a8b883274ad355830dfea51a05bbcf98b4bec2ec3754ed6f34830ea6e7685b1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page