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.2.tar.gz
(2.4 kB
view details)
File details
Details for the file ABN-0.3.2.tar.gz.
File metadata
- Download URL: ABN-0.3.2.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a10a078365b02ffd8a065a26b61602dda94e08ec059dd7f7ff490ff80d22482
|
|
| MD5 |
c47a7a00f95582941cdebd16390fb429
|
|
| BLAKE2b-256 |
c82fe832de817de40156a1170ca4c9d802995dc531c7276ce2f6c8879665977f
|