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 or your current Python:
$ python setup.py test
To run the tests over all supported Python versions, install Tox and run:
$ tox
Release History
0.3.7 (2016-08-03)
Improvements
Add test suite to setup.py. You can run with python setup.py test.
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.7.tar.gz.
File metadata
- Download URL: ABN-0.3.7.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
014b88f559297bbec45842bd69be3c0ecd716eae15e75d517c92354c6a04f88c
|
|
| MD5 |
c1b3aa0040f2d73d09979fa9071c39b6
|
|
| BLAKE2b-256 |
dac7115b57dc78db5456abde9c8d14d1f73f08ba6ac80c9a1065a15b6241959b
|
File details
Details for the file ABN-0.3.7-py2.py3-none-any.whl.
File metadata
- Download URL: ABN-0.3.7-py2.py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7eb5be322366e638a1faea998e3974aa05a73327df4e6f0808a52f0d168bbff
|
|
| MD5 |
83954cadf8f4d37f9f37486a72f187a8
|
|
| BLAKE2b-256 |
ca419c98adabadaade6dbbb939de9e542eed2edbd122fcec574c78ce9c887845
|