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.5.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ABN-0.3.5-py2.py3-none-any.whl (3.1 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for ABN-0.3.5.tar.gz
Algorithm Hash digest
SHA256 3a6505af18568d293ad1adea1aed01f8778ca0d8740b39fcc4e338109f207013
MD5 2fdc493cc80bb425a7cc2682f3cb60f1
BLAKE2b-256 efafc178f103334a5bd366844dbfa770bf99c61e0e4e4c4362d9e31bba4cec2d

See more details on using hashes here.

File details

Details for the file ABN-0.3.5-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for ABN-0.3.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 840cd73f7d1c553aae4c74e8721b28419b0764122f8c6e29fa10ab1f1312fe41
MD5 90e13d825a1faf96cd66b85d93ce13b2
BLAKE2b-256 971dc0a7112753772ff396f151cba67f6019a02a77cba9d35d9a1bf3cf62fed1

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