Skip to main content

Parse, validate and reformat standard numbers and codes.

This library offers functions for parsing, validating and reformatting standard numbers and codes in various formats.

Currently this package supports the following formats:

  • at.uid: UID (Umsatzsteuer-Identifikationsnummer, Austrian VAT number)

  • be.vat: BTW, TVA, NWSt (Belgian VAT number)

  • bg.egn: EGN (ЕГН, Единен граждански номер, Bulgarian personal identity codes)

  • bg.pnf: PNF (ЛНЧ, Личен номер на чужденец, Bulgarian number of a foreigner)

  • bg.vat: VAT (Идентификационен номер по ДДС, Bulgarian VAT number)

  • br.cpf: CPF (Cadastro de Pessoas Físicas, Brazillian national identifier)

  • cy.vat: Αριθμός Εγγραφής Φ.Π.Α. (Cypriot VAT number)

  • cz.dic: DIČ (Daňové identifikační číslo, Czech VAT number)

  • cz.rc: RČ (Rodné číslo, the Czech birth number)

  • de.vat: Ust ID Nr. (Umsatzsteur Identifikationnummer, German VAT number)

  • dk.cpr: CPR (personnummer, the Danish citizen number)

  • dk.cvr: CVR (Momsregistreringsnummer, Danish VAT number)

  • ean: EAN (International Article Number)

  • ee.kmkr: KMKR (Käibemaksukohuslase, Estonian VAT number)

  • es.cif: CIF (Certificado de Identificación Fiscal, Spanish company tax number)

  • es.dni: DNI (Documento nacional de identidad, Spanish personal identity codes)

  • es.nie: NIE (Número de Identificación de Extranjeros, Spanish foreigner number)

  • es.nif: NIF (Número de Identificación Fiscal, Spanish VAT number)

  • eu.vat: VAT (European Union VAT number)

  • fi.alv: ALV nro (Arvonlisäveronumero, Finnish VAT number)

  • fi.hetu: HETU (Henkilötunnus, Finnish personal identity code)

  • fr.siren: SIREN (a French company identification number)

  • fr.tva: n° TVA (taxe sur la valeur ajoutée, French VAT number)

  • gb.vat: VAT (United Kingdom (and Isle of Man) VAT registration number)

  • gr.vat: FPA, ΦΠΑ (Foros Prostithemenis Aksias, the Greek VAT number)

  • grid: GRid (Global Release Identifier)

  • hr.oib: OIB (Osobni identifikacijski broj, Croatian identification number)

  • hu.anum: ANUM (Közösségi adószám, Hungarian VAT number)

  • iban: IBAN (International Bank Account Number)

  • ie.pps: PPS No (Personal Public Service Number, Irish personal number)

  • ie.vat: VAT (Irish VAT number)

  • imei: IMEI (International Mobile Equipment Identity)

  • imsi: IMSI (International Mobile Subscriber Identity)

  • isan: ISAN (International Standard Audiovisual Number)

  • isbn: ISBN (International Standard Book Number)

  • isil: ISIL (International Standard Identifier for Libraries)

  • ismn: ISMN (International Standard Music Number)

  • issn: ISSN (International Standard Serial Number)

  • it.iva: Partita IVA (Italian VAT number)

  • lt.pvm: PVM (Pridėtinės vertės mokestis mokėtojo kodas, Lithuanian VAT number)

  • lu.tva: TVA (taxe sur la valeur ajoutée, Luxembourgian VAT number)

  • lv.pvn: PVN (Pievienotās vērtības nodokļa, Latvian VAT number)

  • meid: MEID (Mobile Equipment Identifier)

  • mt.vat: VAT (Maltese VAT number)

  • my.nric: NRIC No. (Malaysian National Registration Identity Card Number)

  • nl.bsn: BSN (Burgerservicenummer, Dutch national identification number)

  • nl.btw: BTW-nummer (Omzetbelastingnummer, the Dutch VAT number)

  • nl.onderwijsnummer: Onderwijsnummer (Dutch school number)

  • pl.nip: NIP (Numer Identyfikacji Podatkowej, Polish VAT number)

  • pt.nif: NIF (Número de identificação fiscal, Portuguese VAT number)

  • ro.cf: CF (Cod de înregistrare în scopuri de TVA, Romanian VAT number)

  • ro.cnp: CNP (Cod Numeric Personal, Romanian Numerical Personal Code)

  • se.vat: VAT (Moms, Mervärdesskatt, Swedish VAT number)

  • si.ddv: ID za DDV (Davčna številka, Slovenian VAT number)

  • sk.dph: IČ DPH (IČ pre daň z pridanej hodnoty, Slovak VAT number)

  • sk.rc: RČ (Rodné číslo, the Slovak birth number)

  • us.ssn: SSN (U.S. Social Security Number)

Furthermore a number of generic check digit algorithms are available:

  • iso7064.mod_11_10: The ISO 7064 Mod 11, 10 algorithm

  • iso7064.mod_11_2: The ISO 7064 Mod 11, 2 algorithm

  • iso7064.mod_37_2: The ISO 7064 Mod 37, 2 algorithm

  • iso7064.mod_37_36: The ISO 7064 Mod 37, 36 algorithm

  • iso7064.mod_97_10: The ISO 7064 Mod 97, 10 algorithm

  • luhn: The Luhn and Luhn mod N algorithms

  • verhoeff: The Verhoeff algorithm

Release files for python-stdnum 0.8

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

Source distribution (sdist)

Source distribution for python-stdnum 0.8
File Size Uploaded
python-stdnum-0.8.tar.gz 108.0 kB Details

Release files / python-stdnum-0.8.tar.gz

Download URL python-stdnum-0.8.tar.gz
Size 108.0 kB
Tags Source
SHA-256 checksum
How to use checksums
87d1d4219fe0ecd5b0acca3f770705abafab93c5e623244da8fdfbbed0ae1399
BLAKE2b-256 checksum
How to use checksums
2559dad04ef4f8e13a05f43765440a8024321d3c330d318be51d5b9f2ea35913
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

2.2

2 release files

2.1

2 release files

2.0

2 release files

1.20

2 release files

1.19

2 release files

1.18

2 release files

1.17

2 release files

1.16

2 release files

1.15

2 release files

1.14

2 release files

1.13

2 release files

1.12

2 release files

1.11

2 release files

1.10

2 release files

1.9

2 release files

1.8.1

1 release file

1.8

1 release file

1.7

1 release file

1.6

1 release file

1.5

1 release file

1.4

1 release file

1.3

1 release file

1.2

1 release file

1.1

1 release file

1.0

1 release file

0.9

1 release file

0.8.1

1 release file

This release

0.8 This release

1 release file

0.7

1 release file

0.6

1 release file

0.5

1 release file

0.4

1 release file

0.3

1 release file

0.2

1 release file

0.1

1 release file

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