Up to [cvs.NetBSD.org] / pkgsrc / misc / py-stdnum
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
py-stdnum: updated to 2.2
changes from 2.1 to 2.2
-----------------------
* Add modules for the following number formats:
- VÖEN (Vergi ödəyicisinin eyniləşdirmə nömrəsi, Azerbaijan tax number)
(thanks Leandro Regueiro)
- Belgian OGM-VCS
(thanks Cédric Krier)
- Leitweg-ID, a buyer reference or routing identifier for electronic invoices
(thanks Tuukka Tolvanen)
- European Excise Number (thanks Cédric Krier)
- n° d'accise (French number to identify taxpayers of excise taxes)
(thanks Cédric Krier)
- RCS (French trade registration number for commercial companies)
(thanks Fabien MICHEL)
- NUIT (Número Único de Identificação Tributaria, Mozambique tax number)
(thanks Luca and Leandro Regueiro)
- NINEA (Numéro d'Identification Nationale des Entreprises et Associations, Senegal tax number)
(thanks Leandro Regueiro)
* Fix handling of decimals in Application Identifiers (thanks zipus)
* Update list of valid Chinese counties (thanks 电子旅人 and Luca)
* Mark more Romanian CNP county codes as valid (thanks luella-s)
* Support Latvian personal codes issued after 2017 (thanks José Luis López Pino)
* Provide aliases for Estonian numbers (thanks Joni Saarinen)
* Add validation of country code in BIC (thanks Luuk Gubbels)
* Add function to convert a French VAT number into a SIREN (thanks Fabien MICHEL)
* Add a function to format a French SIREN (thanks Fabien MICHEL)
* Add extra validation of Belgian VAT numbers (thanks Antonio Ginestar)
* Add support for nace revision 2.1 (thanks KathrinM)
* Support the new Romanian ONRC format (thanks dotbit1)
* Support new format for Brazilian CNPJ (thanks Cloves Oliveira)
py-stdnum: updated to 2.1
changes from 2.0 to 2.1
* Add python_requires to setup.py to avoid installation with older Python versions
(thanks Cédric Krier)
* Remove superfluous modulus operation in Japanese Individual Number
(thanks Luca Sicurello)
changes from 1.20 to 2.0
* Only support Python 3.8 and newer (drop Python 2 support so major version bump)
* Include type hints for mypy (thanks David Salvisberg)
* Add modules for the following number formats:
- eID Number (Belgian electronic Identity Card Number) (thanks Jeff Horemans)
- SSN, INSZ, NISS (Belgian social security number) (thanks Jeff Horemans)
- CAE (Código de Actividad y Establecimiento, Spanish activity establishment code)
(thanks Quique Porta)
- NIK (Nomor Induk Kependudukan, Indonesian identity number)
- ISNI (International Standard Name Identifier) (thanks Henning Kage)
- IN (個人番号, kojin bangō, Japanese Individual Number) (thanks Luca Sicurello)
- Identiteitskaartnummer, Paspoortnummer (the Dutch passport number)
(thanks Jeff Horemans)
- ОГРН, OGRN, PSRN, ОГРНИП, OGRNIP (Russian Primary State Registration Number)
(thanks Ivan Stavropoltsev)
* Fix Czech RČ check digit validation (thanks Jan Chaloupecky)
* Support Ecuador public RUC with juridical format (thanks Leandro)
* Allow Uruguay RUT numbers starting with 22
* Add missing music industry ISRC country codes (thanks Victor Sordoillet)
* Support 16 digit Indonesian NPWP numbers (thanks Chris Smola)
* Adjust Swiss uid module to accept numbers without CHE prefix (thanks Jeff Horemans)
* Update Irish PPS validator to support new numbers (thanks Olly Middleton)
* Add missing vat alias for Thailand VAT number (thanks Leandro Regueiro)
* Add more tests for the Verhoeff implementation
* Ensure that certificate verification can be configured using the verify
argument when using web services
* The check_dgii() and search_dgii() functions from the Dominican Republic Cedula
and RNC modules no longer work due to a change in the DGII online web service
* Various small code cleanups (thanks David Salvisberg)
* Various small fixes to update scripts
* The stdnum.util.to_unicode() function is now deprecated and will be removed
in an upcoming release
Fix PLIST after py-setuptools update; bump depends and revision
py-stdnum: updated to 1.20 changes from 1.19 to 1.20 * Add modules for the following number formats: - BC PHN (British Columbia Personal Health Number) (thanks Ömer Boratav) - EC Number (European Community number) (thanks Daniel Weber) - VID (Indian personal virtual identity number) (thanks Atul Deolekar) * Fix typo in German Umsatzsteur Identifikationnummer (thanks Александр Кизеев) * Ensure EU VAT numbers don't accept duplicate country codes * Fix vatin number compacting for "EU" VAT numbers (thanks Davide Walder) * Add check digit validation to French NIF (thanks Kevin Dagostino) * Fix Ukrainian EDRPOU check digit calculation (thanks sector119)
py-stdnum: updated to 1.19
changes from 1.18 to 1.19
-------------------------
* Add modules for the following number formats:
- Tax Registration Number (الرقم الضريبي, Egypt tax number) (thanks Leandro Regueiro)
- Postcode (the Spanish postal code) (thanks Víctor)
- NIFp (Numéro d'Identification Fiscale Permanent, Guinea tax number)
(thanks Leandro Regueiro)
- BIS (Belgian BIS number) (thanks Jeff Horemans)
- Matična številka poslovnega registra (Corporate Registration Number) (thanks Blaž Bregar)
- OSS (European VAT on e-Commerce - One Stop Shop) (thanks Sergi Almacellas Abellana)
* Extend the validation of the Albanian NIPT (NUIS) number (thanks Julien Launois)
* Support different date formats in parsing GS1-128 application identifiers
* Add get_county() function to Romanian CNP (thanks RaduBorzea)
* Add functionality to get gender from Belgian National Number (thanks Jeff Horemans)
* Add support for Finland HETU new century indicating signs (thanks Maks Turtiainen)
* Add functionality to get (partial) birth date from Belgian National Number
(thanks Jeff Horemans)
* Extend validation of Canadian SIN (thanks Marcel Lecker)
* Fix Belarusian UNP online validation
* Various typo and documentation fixes (thanks valeriko, Dimitri Papadopoulos,
Ali-Akber Saifee and Chales Horn)
* Add contribution information to documentation
* Test suite improvements (including checking file headers)
py-stdnum: updated to 1.18
changes from 1.17 to 1.18
-------------------------
* Add modules for the following number formats:
- NN, NISS (Belgian national number) (thanks Cédric Krier)
- CFI (ISO 10962 Classification of Financial Instruments)
- Czech bank account number (thanks Petr Přikryl)
- NIF, sometimes N.I.F. (Numéro d'Identification Fiscale, Algeria tax number)
(thanks Leandro Regueiro)
- V-number (Vinnutal, Faroe Islands tax number) (thanks Leandro Regueiro)
- TIN (Taxpayer Identification Number, Ghana tax number) (thanks Leandro Regueiro)
- PIN (Personal Identification Number, Kenya tax number) (thanks Leandro Regueiro)
- ICE (Identifiant Commun de l’Entreprise, التعريف الموحد للمقاولة, Morocco tax number)
(thanks Leandro Regueiro)
- PIB (Poreski Identifikacioni Broj, Montenegro tax number) (thanks Leandro Regueiro)
- ЕДБ (Едниствен Даночен Број, North Macedonia tax number) (thanks Leandro Regueiro)
- CNIC number (Pakistani Computerised National Identity Card number)
(thanks Syed Haseeb Shah)
- Enotna matična številka občana (Unique Master Citizen Number)
(thanks Blaž Bregar)
- MF (Matricule Fiscal, Tunisia tax number) (thanks Leandro Regueiro)
* Fix disabling check digit validation of Mexican CURP (thanks guyskk)
* Support special validation of La Post SIRET (thanks BIGBen99 and Cédric Krier)
* Fix support for "I" and "O" in CUSIP number (thanks Thomas Kavanagh)
* Calculate ISO 7064 Mod 97, 10 check digits in the range 02-98 for IBAN
(thanks David Svenson)
* Fix German OffeneRegister lookups (change of URL and of data structure)
* Add extra court alias for Berlin in German Handelsregisternummer (thanks Romuald R)
* Ensure certificate for the Belarus VAT number check_nalog() lookup is included
* Support parsing incomplete dates in GS1-128 (thanks Alexis de Lattre)
* Improve validation of CAS Registry Number
* Typo fixes (thanks Vladimir and Dimitri Papadopoulos)
* Add a check_uid() function to the stdnum.ch.uid module
* All validation exceptions should now inherit from ValueError
* Switch from nose to pytest as test runner
py-stdnum: updated to 1.17
changes from 1.16 to 1.17
-------------------------
* Add modules for the following number formats:
- EPIC (Electoral Photo Identity Card, Indian Voter ID)
(thanks Gaurav Chauhan)
- GSTIN (Goods and Services Tax identification number, Indian VAT number)
(thanks Gaurav Chauhan)
- ISRC (International Standard Recording Code) (thanks Nuno André)
- CC (Número de Cartão de Cidadão, Portuguese Identity number)
(thanks David Vaz)
- Postcode (the Swedish postal code) (thanks Michele Ciccozzi)
- MOA (Thailand Memorandum of Association Number) (thanks Piruin Panichphol)
- PIN (Thailand Personal Identification Number) (thanks Piruin Panichphol)
- TIN (Thailand Taxpayer Identification Number) (thanks Piruin Panichphol)
* Add ENCF validation support for Dominican Republic NCF
(thanks Cristopher Ortega)
* Add new e-CF types to Dominican Republic NCF (thanks Frank Roberto Chavez Sosa)
* Improve French NIF validation (thanks Dimitri Papadopoulos)
* Drop support for Python 2.6 and 3.4
* Fix parsing of empty fields in Dominican Republic DGII checking
(thanks Andres Rodriguez)
* Fix handling of empty worksheet in Belgian bank download
(thanks Dimitri Papadopoulos)
* Fix detection of natural RUC values (thanks Victor Rodriguez)
* Fix Belarus VAT number online lookup again
* Fixes for problems with loading IMSI data from Wikipedia and dealing with
inconsistencies
* Remove South Korean BRN Fair Trade Commission website check due to CAPTCHA
* Various code and documentation improvements (thanks Dimitri Papadopoulos and Gaurav Chauhan)
py-stdnum: updated to 1.16 changes from 1.15 to 1.16 ------------------------- * Support XI country code for Northern Ireland VAT numbers * Switch data source for Austrian postal codes * Fix Belarus VAT number online lookup changes from 1.14 to 1.15 ------------------------- * Add modules for the following number formats: - CUI or CIF (Codul Unic de Înregistrare, Romanian company identifier) - PEID (Liechtenstein tax code for individuals and entities) - ЄДРПОУ, EDRPOU (Identifier for enterprises and organizations in Ukraine) - РНОКПП, RNTRC (Individual taxpayer registration number in Ukraine) * Make list of EU member states part of public API * Retain RO prefix in Romanian VAT numbers * Support international VAT numbers that are only valid with country prefix * Expanded validation for Belgian VAT numbers * Use ABN as Australian VAT number * Remove GB from EU member states
py-stdnum: updated to 1.14
changes from 1.13 to 1.14
-------------------------
* Add modules for the following number formats:
- УНП, UNP (Учетный номер плательщика, the Belarus VAT number)
- AIC (Italian code for identification of drugs) (thanks Fabrizio Montanari)
- Company Number (מספר חברה, or short ח.פ. Israeli company number)
(thanks Leandro Regueiro)
- NIT (Número de Identificación Tributaria, El Salvador tax number)
(thanks Leandro Regueiro)
- USCC (Unified Social Credit Code, 统一社会信用代码, China tax number)
(thanks Leandro Regueiro)
- UEN (Singapore's Unique Entity Number) (thanks Leandro Regueiro)
- BRN (사업자 등록 번호, South Korea Business Registration Number)
(thanks Leandro Regueiro)
- MST (Mã số thuế, Vietnam tax number) (thanks Leandro Regueiro)
- NPWP (Nomor Pokok Wajib Pajak, Indonesian VAT Number)
(thanks Leandro Regueiro)
- UBN (Unified Business Number, 統一編號, Taiwanese tax number)
(thanks Leandro Regueiro)
- UTR (United Kingdom Unique Taxpayer Reference) (thanks Mohammed Salman)
- ONRC (Ordine din Registrul Comerţului, Romanian Trade Register identifier)
(thanks dotbit1)
- GS1-128 (Standard to encode product information in Code 128 barcodes)
(thanks Sergi Almacellas Abellana)
- VATIN (International value added tax identification number)
(thanks Leandro Regueiro)
* Fix missing Dominican Republic NCF document types (thanks Gustavo Valverde)
* Fix issue with extra plus or minus in Swedish Personnummer
(thanks balderman)
* Update Dominican Republic DGII endpoint (thanks Gustavo Valverde)
* Support validating temporary Finnish personal identity codes
(thanks Aleksi Hoffman)
* Fix misleading docstring in se.personnummer.get_birth_date()
(thanks Leon Sandøy)
* Improve birth date validation in Danish CPR (thanks Leon Sandøy)
* Add birth date validating in Norwegian Fødselsnummer (thanks Leon Sandøy)
* Add missing vat aliases for a number of countries (thanks Leandro Regueiro)
* Use HTTPS instead of HTTP fox VIES lookups (thanks grzekru)
* Switch to HTTPS URLs where possible
* Support 6 as third digit in Ecuadorian CI (thanks Christopher Ormaza)
* Add an online check for South Korean BRN
* Fix unescaping in Dominican Republic RNC online check (thanks evaldez89)
* Support foreign residents for Romanian CNP (thanks dotbit1)
py-stdnum: updated to 1.13 changes from 1.12 to 1.13 * Add modules for the following number formats: - ESR, ISR, QR-reference (reference number on Swiss payment slips) - ID number (South African Identity Document number) * Add format function for ISO 11649 numbers * Add support for Python 3.8 * Clarify that the Italian Codice Fiscale can also be the IVA for companies * Support the new Dutch btw-identificatienummer * Extend test for Argentinian CUIT to check first two digits * Add more country codes to ISIN changes from 1.11 to 1.12 * Add modules for the following number formats: - NRT (Número de Registre Tributari, Andorra tax number) - CPF (Cédula de Persona Física, Costa Rica physical person ID number) - CPJ (Cédula de Persona Jurídica, Costa Rica tax number) - CR (Cédula de Residencia, Costa Rica foreigners ID number) - NIT (Número de Identificación Tributaria, Guatemala tax number) - Identity Number (Mispar Zehut, מספר זהות, Israeli identity number) - CN (法人番号, hōjin bangō, Japanese Corporate Number) - RRN (South Korean resident registration number) - IRD number (New Zealand Inland Revenue Department (Te Tari Tāke) number) - CUI (Cédula Única de Identidad, Peruvian identity number) - RUC (Registro Único de Contribuyentes, Peruvian company tax number) - RUC number (Registro Único de Contribuyentes, Paraguay tax number) - VKN (Vergi Kimlik Numarası, Turkish tax identification number) - RUT (Registro Único Tributario, Uruguay tax number) - RIF (Registro de Identificación Fiscal, Venezuelan VAT number) - TIN (South African Tax Identification Number) * Support GTIN (EAN-14) validation as part of EAN * Support Dominican Republic e-CF within NCF * Fix Dominican Republic DGII lookups of NCF * Fix German Handelsregisternummer to not confuse Hamburg with Homburg and to accept shorter numbers * Support lookups of German Handelsregisternummer in OffeneRegister.de web service * Handle - and + sign correctly in Swedish Personnummer * Provide various personalid and vat aliases for existing numbers * Improve descriptions of Spanish codes * Fix handling and normalisation of various Unicode digit representations
py-stdnum: updated to 1.11 changes from 1.10 to 1.11 * Add modules for the following number formats: - DNI (Documento Nacional de Identidad, Argentinian national identity nr.) - VNR, SVNR, VSNR (Versicherungsnummer, Austrian social security number) - NI (Número de identidad, Cuban identity card numbers) - AMKA (Αριθμός Μητρώου Κοινωνικής Ασφάλισης, Greek social security number) - Asmens kodas (Lithuanian, personal numbers) - MAC address (Media Access Control address) - IDNO (Moldavian company identification number) - CURP (Clave Única de Registro de Población, Mexican personal ID) - Fødselsnummer (Norwegian birth number, the national identity number) - New Zealand bank account number - Personnummer (Swedish personal identity number) * Code style improvements * Change Dominican Republic DGII check URL to HTTPS * Support Ecuadorian Cedula and RUC of foreigners * Add format() function for Argentinian CUIT number * Support passing formatted numbers to all get_birth_date() and similar functions * Handle Dominican Republic DGII lookup returning multiple entities
py-stdnum: updated to 1.10 changes from 1.9 to 1.10 * Add modules for the following number formats: - Bitcoin address - ISO 11649 (Structured Creditor Reference) - ID number (Mauritian national identifier) - Norwegian IBAN (International Bank Account Number) - Konto nr. (Norwegian bank account number) * Fix a bug in handling of Mexican tax numbers * Improve Spanish CIF and NIF validation * Update Dominican Republic NCF numbers online check * Improve Unicode conversion for bytestrings * Improvements to some corner cases in IBAN validation * Documentation improvements * Add stdnum.ru.vat as an alias for stdnum.ru.inn
py-stdnum: updated to 1.9 Changes from 1.8.1 to 1.9: * add modules for the following number formats: - Postleitzahl (Austrian postal code) - Abgabenkontonummer (Austrian tax identification number) - Belgian IBAN (International Bank Account Number) - Handelsregisternummer (German company register number) - St.-Nr. (Steuernummer, German tax number) - FIGI (Financial Instrument Global Identifier) - Montenegro IBAN (International Bank Account Number) * Have documentation rebuilt reproducibly * Allow configuring the SOAP request timeout * Support spaces in ISO 9362 (SWIFT) BIC codes * Add check_dgii() to stdnum.do.cedula module * Add validation for "individual" part of hetu * Support new style of Dominican Republic NCF numbers * Fix issue when using PySimpleSOAP for DGII lookups * Fix an issue in splitting certain IMSI values * Support building a universal wheel * Documentation and code style improvements
py-stdnum: updated to 1.8 changes from 1.7 to 1.8 * add modules for the following number formats: - NCF (Números de Comprobante Fiscal, Dominican Republic receipt number) - Euro banknote serial numbers - CAS RN (Chemical Abstracts Service Registry Number) - Aadhaar (Indian digital resident personal identity number) (thanks Srikanth Lakshmanan) - PAN (Permanent Account Number, Indian income tax identifier) (thanks Srikanth Lakshmanan) * add functions for using the Dominican Republic DGII web service to validate and search for RNC and NCF numbers * add/update whitelists for Dominican Republic RNC and Cedula * support zeep as preferred SOAP library (suds and pysimplesoap are tried as fallback) * rename stdnum.iso9362 to stdnum.bic (iso9362 is deprecated but still available for compatibility) * add tests for web services (not normally run to avoid unnecessary load) * fixes and improvement to the sample online validation service
py-stdnum: update to 1.7
changes from 1.6 to 1.7:
* add modules for the following number formats:
- BN (Canadian Business Number)
- SIN (Canadian Social Insurance Number)
- IdNr (Steuerliche Identifikationsnummer, German personal tax number)
(thanks Mohammed Salman of Holvi)
- Registrikood (Estonian organisation registration code)
(thanks Mohammed Salman of Holvi)
- Veronumero (Finnish individual tax number)
(thanks Mohammed Salman of Holvi)
- UPN (English Unique Pupil Number)
* fix a bug in the Czech DIČ check digit calculation
* fix conversion of 9 digit ISBN to ISBN13
* fix a bug in the Damm is_valid() function
* more validation of 13-digit ISBN values
* more validation of ISMN values
* various code and test improvements (100% branch coverage now)
* documentation improvements
update to py-stdnum-1.4
changed depency on py-suds to documented fallback py-simplesoap
in order to support py3.
changes from 1.3 to 1.4
-----------------------
* add modules for the following number formats:
- NIF (Numéro d'Immatriculation Fiscale, French tax identification number)
provided by Dimitri Papadopoulos
- NIR (French personal identification number) provided by Dimitri
Papadopoulos
- SIRET (a French company establishment identification number) provided by
Yoann Aubineau
- NHS (United Kingdom National Health Service patient identifier)
- T.C. Kimlik No. (Turkish personal identification number)
* add an implementation of the Damm algorithm
* ensure data files are properly closed
* documentation improvements
* extend test suite
* a number of minor bug fixes and improvements
changes from 1.2 to 1.3
-----------------------
* fix ISO 6346 check digit calculation (thanks Ronald Paloschi)
* fix problem with check_vies_approx() (thanks Lionel Elie Mamane)
* fix problem with SOAP client when using suds
* include documentation that was previously on the Trac wiki
changes from 1.1 to 1.2
-----------------------
* add modules for the following number formats:
- Austrian Company Register Numbers
- CNPJ (Cadastro Nacional da Pessoa Jurídica, Brazillian company identifier)
- UID (Unternehmens-Identifikationsnummer, Swiss business identifier)
- VAT, MWST, TVA, IVA, TPV (Mehrwertsteuernummer, the Swiss VAT number)
- CUSIP number (financial security identification number)
- Wertpapierkennnummer (German securities identification code)
- Isikukood (Estonian Personcal ID number)
- Finnish Association Identifier
- Y-tunnus (Finnish business identifier)
- SEDOL number (Stock Exchange Daily Official List number)
- IMO number (International Maritime Organization number)
- ISIN (International Securities Identification Number)
- RFC (Registro Federal de Contribuyentes, Mexican tax number)
- PESEL (Polish national identification number)
- REGON (Rejestr Gospodarki Narodowej, Polish register of economic units)
- ИНН (Идентификационный номер налогоплательщика, Russian tax identifier)
* add an alternate VIES check (check_vies_approx()) that includes a proof
(certificate) that the check was performed
* fall back to pysimplesoap if suds is unavailable
* test and code quality improvements
changes from 1.0 to 1.1
-----------------------
* add number formats based on the implementation in the vatnumber module:
- NIPT (Numri i Identifikimit për Personin e Tatueshëm, Albanian VAT number)
- CUIT (Código Único de Identificación Tributaria, Argentinian tax number)
- RUT (Rol Único Tributario, Chilean national tax number)
- NIT (Número De Identificación Tributaria, Colombian identity code)
- COE (Codice operatore economico, San Marino national tax number)
* add modules for the following number formats:
- Cedula (Dominican Republic national identification number)
- RNC (Registro Nacional del Contribuyente, Dominican Republic tax number)
- Kennitala (Icelandic personal and organisation identity code, provided by
Tuomas Toivonen)
- VSK number (Virðisaukaskattsnúmer, Icelandic VAT number, provided by
Tuomas Toivonen)
- ISO 9362 (Business identifier codes, provided by Tony Bajan)
- MVA (Merverdiavgift, Norwegian VAT number, provided by Tuomas Toivonen)
- Orgnr (Organisasjonsnummer, Norwegian organisation number, provided by
Tuomas Toivonen)
- Orgnr (Organisationsnummer, Swedish company number, provided by Tomas
Thor Jonsson)
* add Croatia to list of EU VAT numbers
* update getcnloc script
* various small fixes and additional tests for existing modules
Add misc/py-stdnum Parse, validate and reformat standard numbers and codes. This library offers functions for parsing, validating and reformatting standard numbers and codes in various formats.