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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06ed7bceb63acfcf571d2ecc46648135439250d7a181703785fe9b2aea67a168
|
|
| MD5 |
2d48842a3cb9124a88f82a34e010e3ad
|
|
| BLAKE2b-256 |
12553080c0b6444b7b9c7e8cfc6075ee544a834360253009702b67f81d08acb0
|
File details
Details for the file ABN-0.3.6-py2.py3-none-any.whl.
File metadata
- Download URL: ABN-0.3.6-py2.py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
84413d8f38a86dc4cdca9a1ab361ca3b92f7c82e0c3515ebd9118bcc7257e66d
|
|
| MD5 |
784b1adeff07f99cfb2cfaa0e0fe0c73
|
|
| BLAKE2b-256 |
67518d3cba137a1e78b1ae6290be4ad4386a5163b2b3567a2a313b6b167b44b1
|