python-stdnum is a Python module to parse, validate, and reformat standard numbers and codes in different formats. It supports a large number of number formats, including: ISBN (International Standard Book Number), ISSN (International Standard Serial Number), BSN (Burgerservicenummer, the Dutch national identification number), EAN (International Article Number), SSN (U.S. Social Security Number), IMEI (International Mobile Equipment Identity), IBAN (International Bank Account Number), and more.
| Tags | Python Modules numbers |
|---|---|
| Licenses | LGPL |
| Implementation | Python |
Recent releases


Release Notes: This release adds support for validating VAT numbers in all European Union member states (individually as well as using an EU VAT number). It also adds support for various personal and company numbers of Romania, Finland, the Czech Republic, Slovakia, France, Spain, Bulgaria, the Netherlands, Croatia, Ireland, and Denmark. It contains new documentation for all modules.


Release Notes: This release adds support for the IMSI (International Mobile Subscriber Identity), fixes a bug in the handling of certain ISBNs, adds a few utility functions to existing modules, and has some code layout improvements.


Release Notes: This release adds support for the EAN (International Article Number), includes some refactoring of the ISBN and ISMN checks to use the EAN check digit code, and adds a conversion from ISSN to EAN (ISBN-13 and ISMN-13 should already be an EAN). This release should also work on Python3 with the same code base and includes compatibility improvements for Python 2.5.


Release Notes: This release adds support for CPF (the Brazillian national identification number), IBAN (International Bank Account Numbers), ISIL (International Standard Identifier for Libraries and Related Organizations), and U.S. Social Security Numbers.


Release Notes: This release adds support for ISMN (International Standard Music Number), ISAN (International Standard Audiovisual Number), IMEI (International Mobile Equipment Identity), MEID (Mobile Equipment Identifier), and GRid (Global Release Identifier) numbers. Support for the Verhoeff, Luhn, and several ISO/IEC 7064 check digit algorithms was added.