Skip to main content

Python module to handle standardized numbers and codes

Project description

A Python module to parse, validate and reformat standard numbers and codes in different formats.

Currently this module supports the following formats:

  • ISBN (International Standard Book Number)

  • ISSN (International Standard Serial Number)

  • ISMN (International Standard Music Number)

  • ISAN (International Standard Audiovisual Number)

  • EAN (International Article Number)

  • BSN (Burgerservicenummer, the Dutch national identification number)

  • CPF (Cadastro de Pessoas Físicas, the Brazillian national identification number)

  • SSN (U.S. Social Security Number)

  • IMEI (International Mobile Equipment Identity)

  • MEID (Mobile Equipment Identifier)

  • GRid (Global Release Identifier)

  • IBAN (International Bank Account Number)

  • ISIL (International Standard Identifier for Libraries and Related Organizations)

Furthermore a number of generic check digit algorithms are available:

  • the Verhoeff algorithm

  • the Luhn and Luhn mod N algorithms

  • some algorithms described in ISO/IEC 7064: Mod 11, 2, Mod 37, 2, Mod 97, 10, Mod 11, 10 and Mod 37, 36

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python-stdnum-0.5.tar.gz (42.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page