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

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for ABN-0.3.4.tar.gz
Algorithm Hash digest
SHA256 6ca218d658e57d76a6a47210381b030f24fa793a94acaa1cc9a4ff16823b2fbf
MD5 3a15daf87928f17d399ff68bb38ecc69
BLAKE2b-256 2d7588d0701fad2946fb340594c5f30af40d5ae984a86aedccdf9164dee9d6c6

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