8000 Get files ready for 1.18 release · Dj0ulo/python-stdnum@60a90ed · GitHub
[go: up one dir, main page]

Skip to content

Commit 60a90ed

Browse files
committed
Get files ready for 1.18 release
1 parent 31b2694 commit 60a90ed

20 files changed

+653
-10
lines changed

ChangeLog

Lines changed: 514 additions & 0 deletions
Large diffs are not rendered by default.

NEWS

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,42 @@
1+
changes from 1.17 to 1.18
2+
-------------------------
3+
4+
* Add modules for the following number formats:
5+
6+
- NN, NISS (Belgian national number) (thanks Cédric Krier)
7+
- CFI (ISO 10962 Classification of Financial Instruments)
8+
- Czech bank account number (thanks Petr Přikryl)
9+
- NIF, sometimes N.I.F. (Numéro d'Identification Fiscale, Algeria tax number)
10+
(thanks Leandro Regueiro)
11+
- V-number (Vinnutal, Faroe Islands tax number) (thanks Leandro Regueiro)
12+
- TIN (Taxpayer Identification Number, Ghana tax number) (thanks Leandro Regueiro)
13+
- PIN (Personal Identification Number, Kenya tax number) (thanks Leandro Regueiro)
14+
- ICE (Identifiant Commun de l’Entreprise, التعريف الموحد للمقاولة, Morocco tax number)
15+
(thanks Leandro Regueiro)
16+
- PIB (Poreski Identifikacioni Broj, Montenegro tax number) (thanks Leandro Regueiro)
17+
- ЕДБ (Едниствен Даночен Број, North Macedonia tax number) (thanks Leandro Regueiro)
18+
- CNIC number (Pakistani Computerised National Identity Card number)
19+
(thanks Syed Haseeb Shah)
20+
- Enotna matična številka občana (Unique Master Citizen Number)
21+
(thanks Blaž Bregar)
22+
- MF (Matricule Fiscal, Tunisia tax number) (thanks Leandro Regueiro)
23+
24+
* Fix disabling check digit validation of Mexican CURP (thanks guyskk)
25+
* Support special validation of La Post SIRET (thanks BIGBen99 and Cédric Krier)
26+
* Fix support for "I" and "O" in CUSIP number (thanks Thomas Kavanagh)
27+
* Calculate ISO 7064 Mod 97, 10 check digits in the range 02-98 for IBAN
28+
(thanks David Svenson)
29+
* Fix German OffeneRegister lookups (change of URL and of data structure)
30+
* Add extra court alias for Berlin in German Handelsregisternummer (thanks Romuald R)
31+
* Ensure certificate for the Belarus VAT number check_nalog() lookup is included
32+
* Support parsing incomplete dates in GS1-128 (thanks Alexis de Lattre)
33+
* Improve validation of CAS Registry Number
34+
* Typo fixes (thanks Vladimir and Dimitri Papadopoulos)
35+
* Add a check_uid() function to the stdnum.ch.uid module
36+
* All validation exceptions should now inherit from ValueError
37+
* Switch from nose to pytest as test runner
38+
39+
140
changes from 1.16 to 1.17
241
-------------------------
342

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Currently this package supports the following formats:
2929
* ACN (Australian Company Number)
3030
* TFN (Australian Tax File Number)
3131
* Belgian IBAN (International Bank Account Number)
32+
* NN, NISS (Belgian national number)
3233
* BTW, TVA, NWSt, ondernemingsnummer (Belgian enterprise number)
3334
* EGN (ЕГН, Единен граждански номер, Bulgarian personal identity codes)
3435
* PNF (ЛНЧ, Личен номер на чужденец, Bulgarian number of a foreigner)
@@ -41,6 +42,7 @@ Currently this package supports the following formats:
4142
* BN (Canadian Business Number)
4243
* SIN (Canadian Social Insurance Number)
4344
* CAS RN (Chemical Abstracts Service Registry Number)
45+
* CFI (ISO 10962 Classification of Financial Instruments)
4446
* ESR, ISR, QR-reference (reference number on Swiss payment slips)
4547
* Swiss social security number ("Sozialversicherungsnummer")
4648
* UID (Unternehmens-Identifikationsnummer, Swiss business identifier)
@@ -55,6 +57,7 @@ Currently this package supports the following formats:
5557
* NI (Número de identidad, Cuban identity card numbers)
5658
* CUSIP number (financial security identification number)
5759
* Αριθμός Εγγραφής Φ.Π.Α. (Cypriot VAT number)
60+
* Czech bank account number
5861
* DIČ (Daňové identifikační číslo, Czech VAT number)
5962
* RČ (Rodné číslo, the Czech birth number)
6063
* Handelsregisternummer (German company register number)
@@ -67,6 +70,7 @@ Currently this package supports the following formats:
6770
* Cedula (Dominican Republic national identification number)
6871
* NCF (Números de Comprobante Fiscal, Dominican Republic receipt number)
6972
* RNC (Registro Nacional del Contribuyente, Dominican Republic tax number)
73+
* NIF, sometimes N.I.F. (Numéro d'Identification Fiscale, Algeria tax number)
7074
* EAN (International Article Number)
7175
* CI (Cédula de identidad, Ecuadorian personal identity code)
7276
* RUC (Registro Único de Contribuyentes, Ecuadorian company tax number)
@@ -92,6 +96,7 @@ Currently this package supports the following formats:
9296
* Veronumero (Finnish individual tax number)
9397
* Y-tunnus (Finnish business identifier)
9498
* FIGI (Financial Instrument Global Identifier)
99+
* V-number (Vinnutal, Faroe Islands tax number)
95100
* NIF (Numéro d'Immatriculation Fiscale, French tax identification number)
96101
* NIR (French personal identification number)
97102
* SIREN (a French company identification number)
@@ -102,6 +107,7 @@ Currently this package supports the following formats:
102107
* UPN (English Unique Pupil Number)
103108
* UTR (United Kingdom Unique Taxpayer Reference)
104109
* VAT (United Kingdom (and Isle of Man) VAT registration number)
110+
* TIN (Taxpayer Identification Number, Ghana tax number)
105111
* AMKA (Αριθμός Μητρώου Κοινωνικής Ασφάλισης, Greek social security number)
106112
* FPA, ΦΠΑ, ΑΦΜ (Αριθμός Φορολογικού Μητρώου, the Greek VAT number)
107113
* GRid (Global Release Identifier)
@@ -137,6 +143,7 @@ Currently this package supports the following formats:
137143
* Codice Fiscale (Italian tax code for individuals)
138144
* Partita IVA (Italian VAT number)
139145
* CN (法人番号, hōjin bangō, Japanese Corporate Number)
146+
* PIN (Personal Identification Number, Kenya tax number)
140147
* BRN (사업자 등록 번호, South Korea Business Registration Number)
141148
* RRN (South Korean resident registration number)
142149
* LEI (Legal Entity Identifier)
@@ -145,11 +152,14 @@ Currently this package supports the following formats:
145152
* PVM (Pridėtinės vertės mokestis mokėtojo kodas, Lithuanian VAT number)
146153
* TVA (taxe sur la valeur ajoutée, Luxembourgian VAT number)
147154
* PVN (Pievienotās vērtības nodokļa, Latvian VAT number)
155+
* ICE (Identifiant Commun de l’Entreprise, التعريف الموحد للمقاولة, Morocco tax number)
148156
* MAC address (Media Access Control address)
149157
* n° TVA (taxe sur la valeur ajoutée, Monacan VAT number)
150158
* IDNO (Moldavian company identification number)
151159
* Montenegro IBAN (International Bank Account Number)
160+
* PIB (Poreski Identifikacioni Broj, Montenegro tax number)
152161
* MEID (Mobile Equipment Identifier)
162+
* ЕДБ (Едниствен Даночен Број, North Macedonia tax number)
153163
* VAT (Maltese VAT number)
154164
* ID number (Mauritian national identifier)
155165
* CURP (Clave Única de Registro de Población, Mexican personal ID)
@@ -169,6 +179,7 @@ Currently this package supports the following formats:
169179
* IRD number (New Zealand Inland Revenue Department (Te Tari Tāke) number)
170180
* CUI (Cédula Única de Identidad, Peruvian identity number)
171181
* RUC (Registro Único de Contribuyentes, Peruvian company tax number)
182+
* CNIC number (Pakistani Computerised National Identity Card number)
172183
* NIP (Numer Identyfikacji Podatkowej, Polish VAT number)
173184
* PESEL (Polish national identification number)
174185
* REGON (Rejestr Gospodarki Narodowej, Polish register of economic units)
@@ -187,13 +198,15 @@ Currently this package supports the following formats:
187198
* VAT (Moms, Mervärdesskatt, Swedish VAT number)
188199
* UEN (Singapore's Unique Entity Number)
189200
* ID za DDV (Davčna številka, Slovenian VAT number)
201+
* Enotna matična številka občana (Unique Master Citizen Number)
190202
* IČ DPH (IČ pre daň z pridanej hodnoty, Slovak VAT number)
191203
* RČ (Rodné číslo, the Slovak birth number)
192204
* COE (Codice operatore economico, San Marino national tax number)
193205
* NIT (Número de Identificación Tributaria, El Salvador tax number)
194206
* MOA (Thailand Memorandum of Association Number)
195207
* PIN (Thailand Personal Identification Number)
196208
* TIN (Thailand Taxpayer Identification Number)
209+
* MF (Matricule Fiscal, Tunisia tax number)
197210
* T.C. Kimlik No. (Turkish personal identification number)
198211
* VKN (Vergi Kimlik Numarası, Turkish tax identification number)
199212
* UBN (Unified Business Number, 統一編號, Taiwanese tax number)
@@ -267,7 +280,7 @@ also work with older versions of Python.
267280
Copyright
268281
---------
269282

270-
Copyright (C) 2010-2021 Arthur de Jong and others
283+
Copyright (C) 2010-2022 Arthur de Jong and others
271284

272285
This library is free software; you can redistribute it and/or
273286
modify it under the terms of the GNU Lesser General Public

docs/index.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ Available formats
127127
au.acn
128128
au.tfn
129129
be.iban
130+
be.nn
130131
be.vat
131132
bg.egn
132133
bg.pnf
@@ -139,6 +140,7 @@ Available formats
139140
ca.bn
140141
ca.sin
141142
casrn
143+
cfi
142144
ch.esr
143145
ch.ssn
144146
ch.uid
@@ -153,6 +155,7 @@ Available formats
153155
cu.ni
154156
cusip
155157
cy.vat
158+
cz.bankaccount
156159
cz.dic
157160
cz.rc
158161
de.handelsregisternummer
@@ -165,6 +168,7 @@ Available formats
165168
do.cedula
166169
do.ncf
167170
do.rnc
171+
dz.nif
168172
ean
169173
ec.ci
170174
ec.ruc
@@ -190,6 +194,7 @@ Available formats
190194
fi.veronumero
191195
fi.ytunnus
192196
figi
197+
fo.vn
193198
fr.nif
194199
fr.nir
195200
fr.siren
@@ -200,6 +205,7 @@ Available formats
200205
gb.upn
201206
gb.utr
202207
gb.vat
208+
gh.tin
203209
gr.amka
204210
gr.vat
205211
grid
@@ -235,6 +241,7 @@ Available formats
235241
it.codicefiscale
236242
it.iva
237243
jp.cn
244+
ke.pin
238245
kr.brn
239246
kr.rrn
240247
lei
@@ -243,11 +250,14 @@ Available formats
243250
lt.pvm
244251
lu.tva
245252
lv.pvn
253+
ma.ice
246254
mac
247255
mc.tva
248256
md.idno
249257
me.iban
258+
me.pib
250259
meid
260+
mk.edb
251261
mt.vat
252262
mu.nid
253263
mx.curp
@@ -267,6 +277,7 @@ Available formats
267277
nz.ird
268278
pe.cui
269279
pe.ruc
280+
pk.cnic
270281
pl.nip
271282
pl.pesel
272283
pl.regon
@@ -285,13 +296,15 @@ Available formats
285296
se.vat
286297
sg.uen
287298
si.ddv
299+
si.emso
288300
sk.dph
289301
sk.rc
290302
sm.coe
291303
sv.nit
292304
th.moa
293305
th.pin
294306
th.tin
307+
tn.mf
295308
tr.tckimlik
296309
tr.vkn
297310
tw.ubn

docs/stdnum.be.nn.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
stdnum.be.nn
2+
============
3+
4+
.. automodule:: stdnum.be.nn
5+
:members:

docs/stdnum.cfi.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
stdnum.cfi
2+
==========
3+
4+
.. automodule:: stdnum.cfi
5+
:members:

docs/stdnum.cz.bankaccount.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
stdnum.cz.bankaccount
2+
=====================
3+
4+
.. automodule:: stdnum.cz.bankaccount
5+
:members:

docs/stdnum.dz.nif.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
stdnum.dz.nif
2+
=============
3+
4+
.. automodule:: stdnum.dz.nif
5+
:members:

docs/stdnum.fo.vn.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
stdnum.fo.vn
2+
============
3+
4+
.. automodule:: stdnum.fo.vn
5+
:members:

docs/stdnum.gh.tin.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
stdnum.gh.tin
2+
=============
3+
4+
.. automodule:: stdnum.gh.tin
5+
:members:

0 commit comments

Comments
 (0)
0