arthurdejong / python-stdnum

A Python library to provide functions to handle, parse and validate standard numbers.
https://arthurdejong.org/python-stdnum/
GNU Lesser General Public License v2.1
498 stars 206 forks source link

Add validation for New Zealand Business Number (NZBN) #105

Open unho opened 5 years ago

unho commented 5 years ago
CryoViking commented 6 months ago

Sorry to bump this after such a long period, is there any intention of this being added?

arthurdejong commented 6 months ago

I'm personally a little busy lately so I can't make any realistic promises on this. However, you can help researching some details of the format.

All I was able to find in a quick search is that it is supposed to be 13 digit GS1 Global Location Number and there is an API available for lookups. That means that you can probably use the stdnum.ean module to validate the number after checking that the length is 13 digits.