How To Install python-stdnum on Debian 10

Learn how to install python-stdnum on Debian 10 with this tutorial. python-stdnum is Python module to handle standardized numbers and codes

Introduction

In this tutorial we learn how to install python-stdnum on Debian 10.

What is python-stdnum

python-stdnum is:

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

Currently this package supports the following formats:

  • NIPT (Numri i Identifikimit p?r Personin e Tatuesh?m, Albanian VAT number)
  • CBU (Clave Bancaria Uniforme, Argentine bank account number)
  • CUIT (C?digo ?nico de Identificaci?n Tributaria, Argentinian tax number)
  • Austrian Company Register Numbers
  • Postleitzahl (Austrian postal code)
  • Abgabenkontonummer (Austrian tax identification number)
  • UID (Umsatzsteuer-Identifikationsnummer, Austrian VAT number)
  • ABN (Australian Business Number)
  • ACN (Australian Company Number)
  • TFN (Australian Tax File Number)
  • Belgian IBAN (International Bank Account Number)
  • BTW, TVA, NWSt, ondernemingsnummer (Belgian enterprise number)
  • EGN (???, ?????? ?????????? ?????, Bulgarian personal identity codes)
  • PNF (???, ????? ????? ?? ????????, Bulgarian number of a foreigner)
  • VAT (???????????????? ????? ?? ???, Bulgarian VAT number)
  • BIC (ISO 9362 Business identifier codes)
  • CNPJ (Cadastro Nacional da Pessoa Jur?dica, Brazillian company identifier)
  • CPF (Cadastro de Pessoas F?sicas, Brazillian national identifier)
  • BN (Canadian Business Number)
  • SIN (Canadian Social Insurance Number)
  • CAS RN (Chemical Abstracts Service Registry Number)
  • Swiss social security number (“Sozialversicherungsnummer”)
  • UID (Unternehmens-Identifikationsnummer, Swiss business identifier)
  • VAT, MWST, TVA, IVA, TPV (Mehrwertsteuernummer, the Swiss VAT number)
  • RUT (Rol ?nico Tributario, Chilean national tax number)
  • RIC No. (Chinese Resident Identity Card Number)
  • NIT (N?mero De Identificaci?n Tributaria, Colombian identity code)
  • CUSIP number (financial security identification number)
  • ??????? ???????? ?.?.?. (Cypriot VAT number)
  • DI? (Da?ov? identifika?n? ??slo, Czech VAT number)
  • R? (Rodn? ??slo, the Czech birth number)
  • Handelsregisternummer (German company register number)
  • IdNr (Steuerliche Identifikationsnummer, German personal tax number)
  • St.-Nr. (Steuernummer, German tax number)
  • Ust ID Nr. (Umsatzsteur Identifikationnummer, German VAT number)
  • Wertpapierkennnummer (German securities identification code)
  • CPR (personnummer, the Danish citizen number)
  • CVR (Momsregistreringsnummer, Danish VAT number)
  • Cedula (Dominican Republic national identification number)
  • NCF (N?meros de Comprobante Fiscal, Dominican Republic receipt number)
  • RNC (Registro Nacional del Contribuyente, Dominican Republic tax number)
  • EAN (International Article Number)
  • CI (C?dula de identidad, Ecuadorian personal identity code)
  • RUC (Registro ?nico de Contribuyentes, Ecuadorian company tax number)
  • Isikukood (Estonian Personcal ID number)
  • KMKR (K?ibemaksukohuslase, Estonian VAT number)
  • Registrikood (Estonian organisation registration code)
  • CCC (C?digo Cuenta Corriente, Spanish Bank Account Code)
  • CIF (Certificado de Identificaci?n Fiscal, Spanish company tax number)
  • CUPS (C?digo Unificado de Punto de Suministro, Supply Point Unified Code)
  • DNI (Documento nacional de identidad, Spanish personal identity codes)
  • Spanish IBAN (International Bank Account Number)
  • NIE (N?mero de Identificaci?n de Extranjeros, Spanish foreigner number)
  • NIF (N?mero de Identificaci?n Fiscal, Spanish VAT number)
  • Referencia Catastral (Spanish real estate property id)
  • SEPA Identifier of the Creditor (AT-02)
  • Euro banknote serial numbers
  • EIC (European Energy Identification Code)
  • NACE (classification for businesses in the European Union)
  • VAT (European Union VAT number)
  • ALV nro (Arvonlis?veronumero, Finnish VAT number)
  • Finnish Association Identifier
  • HETU (Henkil?tunnus, Finnish personal identity code)
  • Veronumero (Finnish individual tax number)
  • Y-tunnus (Finnish business identifier)
  • FIGI (Financial Instrument Global Identifier)
  • NIF (Num?ro d’Immatriculation Fiscale, French tax identification number)
  • NIR (French personal identification number)
  • SIREN (a French company identification number)
  • SIRET (a French company establishment identification number)
  • n? TVA (taxe sur la valeur ajout?e, French VAT number)
  • NHS (United Kingdom National Health Service patient identifier)
  • SEDOL number (Stock Exchange Daily Official List number)
  • UPN (English Unique Pupil Number)
  • VAT (United Kingdom (and Isle of Man) VAT registration number)
  • FPA, ???, ??? (??????? ??????????? ???????, the Greek VAT number)
  • GRid (Global Release Identifier)
  • OIB (Osobni identifikacijski broj, Croatian identification number)
  • ANUM (K?z?ss?gi ad?sz?m, Hungarian VAT number)
  • IBAN (International Bank Account Number)
  • PPS No (Personal Public Service Number, Irish personal number)
  • VAT (Irish tax reference number)
  • IMEI (International Mobile Equipment Identity)
  • IMO number (International Maritime Organization number)
  • IMSI (International Mobile Subscriber Identity)
  • Aadhaar (Indian digital resident personal identity number)
  • PAN (Permanent Account Number, Indian income tax identifier)
  • Kennitala (Icelandic personal and organisation identity code)
  • VSK number (Vir?isaukaskattsn?mer, Icelandic VAT number)
  • ISAN (International Standard Audiovisual Number)
  • ISBN (International Standard Book Number)
  • ISIL (International Standard Identifier for Libraries)
  • ISIN (International Securities Identification Number)
  • ISMN (International Standard Music Number)
  • ISO 6346 (International standard for container identification)
  • ISSN (International Standard Serial Number)
  • Codice Fiscale (Italian tax code for individuals)
  • Partita IVA (Italian VAT number)
  • LEI (Legal Entity Identifier)
  • PVM (Prid?tin?s vert?s mokestis mok?tojo kodas, Lithuanian VAT number)
  • TVA (taxe sur la valeur ajout?e, Luxembourgian VAT number)
  • PVN (Pievienot?s v?rt?bas nodok?a, Latvian VAT number)
  • n? TVA (taxe sur la valeur ajout?e, Monacan VAT number)
  • Montenegro IBAN (International Bank Account Number)
  • MEID (Mobile Equipment Identifier)
  • VAT (Maltese VAT number)
  • RFC (Registro Federal de Contribuyentes, Mexican tax number)
  • NRIC No. (Malaysian National Registration Identity Card Number)
  • Brin number (Dutch number for schools)
  • BSN (Burgerservicenummer, Dutch national identification number)
  • BTW-nummer (Omzetbelastingnummer, the Dutch VAT number)
  • Onderwijsnummer (Dutch student school number)
  • Postcode (Dutch postal code)
  • MVA (Merverdiavgift, Norwegian VAT number)
  • Orgnr (Organisasjonsnummer, Norwegian organisation number)
  • NIP (Numer Identyfikacji Podatkowej, Polish VAT number)
  • PESEL (Polish national identification number)
  • REGON (Rejestr Gospodarki Narodowej, Polish register of economic units)
  • NIF (N?mero de identifica??o fiscal, Portuguese VAT number)
  • CF (Cod de ?nregistrare ?n scopuri de TVA, Romanian VAT number)
  • CNP (Cod Numeric Personal, Romanian Numerical Personal Code)
  • PIB (Poreski Identifikacioni Broj, Serbian tax identification number)
  • ??? (????????????????? ????? ?????????????????, Russian tax identifier)
  • Orgnr (Organisationsnummer, Swedish company number)
  • VAT (Moms, Merv?rdesskatt, Swedish VAT number)
  • ID za DDV (Dav?na ?tevilka, Slovenian VAT number)
  • I? DPH (I? pre da? z pridanej hodnoty, Slovak VAT number)
  • R? (Rodn? ??slo, the Slovak birth number)
  • COE (Codice operatore economico, San Marino national tax number)
  • T.C. Kimlik No. (Turkish personal identification number)
  • ATIN (U.S. Adoption Taxpayer Identification Number)
  • EIN (U.S. Employer Identification Number)
  • ITIN (U.S. Individual Taxpayer Identification Number)
  • PTIN (U.S. Preparer Tax Identification Number)
  • RTN (Routing transport number)
  • SSN (U.S. Social Security Number)
  • TIN (U.S. Taxpayer Identification Number)

Furthermore a number of generic check digit algorithms are available:

  • the Verhoeff algorithm
  • the Damm 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

This package contains the Python 2 version of the library.

There are three methods to install python-stdnum on Debian 10. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install python-stdnum Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install python-stdnum using apt-get by running the following command:

sudo apt-get -y install python-stdnum

Install python-stdnum Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install python-stdnum using apt by running the following command:

sudo apt -y install python-stdnum

Install python-stdnum Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install python-stdnum using aptitude by running the following command:

sudo aptitude -y install python-stdnum

How To Uninstall python-stdnum on Debian 10

To uninstall only the python-stdnum package we can use the following command:

sudo apt-get remove python-stdnum

Uninstall python-stdnum And Its Dependencies

To uninstall python-stdnum and its dependencies that are no longer needed by Debian 10, we can use the command below:

sudo apt-get -y autoremove python-stdnum

Remove python-stdnum Configurations and Data

To remove python-stdnum configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge python-stdnum

Remove python-stdnum configuration, data, and all of its dependencies

We can use the following command to remove python-stdnum configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge python-stdnum

Dependencies

python-stdnum have the following dependencies:

References

Summary

In this tutorial we learn how to install python-stdnum package on Debian 10 using different package management tools: apt, apt-get and aptitude.