Validates account numbers for New Zealand banks
Project description
NZ Bank validator
This package validates account numbers for all New Zealand banks, based on chapter "8. Bank account number validation" in "2020 Resident Withholding Tax (RWT) and Non-Resident Withholding Tax (NRWT) - Software Requirements Specification For the year ending 31 March 2020"
from nz_bank_validate import nz_bank_validate
nz_bank_validate(*'08-6523-1954512-001'.split('-'))
If validate succeeded, the function returns True.
If validate failed, the function raises ValueError('invalid').
Or use option return_false_on_fail
to explicitly indicate return False when invalid:
nz_bank_validate(*'08-6523-1954512-001'.split('-'), return_false_on_fail=False)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nz-bank-validate-1.0.1.tar.gz
(4.6 kB
view hashes)
Built Distribution
Close
Hashes for nz_bank_validate-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d9c13a4603e8cb5b70259831692aa3bc84daa2004e14d1ebcc7144a3f5e7254 |
|
MD5 | 92692aca67126d7ac2db2e35e65552d8 |
|
BLAKE2b-256 | 755083fc3b748f6b14efaea679e4291e0c82827ca260d62d934c4eaeae423bc6 |