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'

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

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for ABN-0.3.tar.gz
Algorithm Hash digest
SHA256 249bf9e292178428b5c05e70d016463a31ec6573788966e10344d0a3daec1760
MD5 891a713648b50436f9fcb788509720f1
BLAKE2b-256 37ca58e62b99abd8745b4cd60889b0155937f70d0da868a9a30b5ca8d8d90d92

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