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:

$ tox

Release History

0.3.6 (2015-08-03)

Bug fixes

  • Enable tests for Python 2.7, 3.3 and 3.4.

https://piwik.sturm.com.au/piwik.php?idsite=20&rec=1

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.6.tar.gz (4.0 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.6-py2.py3-none-any.whl (3.8 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for ABN-0.3.6.tar.gz
Algorithm Hash digest
SHA256 06ed7bceb63acfcf571d2ecc46648135439250d7a181703785fe9b2aea67a168
MD5 2d48842a3cb9124a88f82a34e010e3ad
BLAKE2b-256 12553080c0b6444b7b9c7e8cfc6075ee544a834360253009702b67f81d08acb0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ABN-0.3.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 84413d8f38a86dc4cdca9a1ab361ca3b92f7c82e0c3515ebd9118bcc7257e66d
MD5 784b1adeff07f99cfb2cfaa0e0fe0c73
BLAKE2b-256 67518d3cba137a1e78b1ae6290be4ad4386a5163b2b3567a2a313b6b167b44b1

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