Skip to main content

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)

Metadata

Release files for nz-bank-validate 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nz-bank-validate 1.0.1
File Size Uploaded Provenance Actions
nz-bank-validate-1.0.1.tar.gz 4.6 kB Without provenance Details for nz-bank-validate-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nz-bank-validate 1.0.1
File Interpreter ABI Platform Actions
nz_bank_validate-1.0.1-py3-none-any.whl Python 3 none any Details for nz_bank_validate-1.0.1-py3-none-any.whl

Total release size: 9.9 kB

Release files / nz-bank-validate-1.0.1.tar.gz

Download URL nz-bank-validate-1.0.1.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
105e124b057f11ff5405b6a9e5b4ed52debc4f376a8f866e74a73afa7e03a6bb
BLAKE2b-256 checksum
How to use checksums
b474f67f238a35584dbfc47ed915183cfbc6cdee5632ae6ba6b1515974a9a941
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

Release files / nz_bank_validate-1.0.1-py3-none-any.whl

Download URL nz_bank_validate-1.0.1-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5d9c13a4603e8cb5b70259831692aa3bc84daa2004e14d1ebcc7144a3f5e7254
BLAKE2b-256 checksum
How to use checksums
755083fc3b748f6b14efaea679e4291e0c82827ca260d62d934c4eaeae423bc6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

Security for nz-bank-validate 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page