Skip to content

Commit

Permalink
Get files ready for 1.18 release
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurdejong committed Nov 13, 2022
1 parent 31b2694 commit 60a90ed
Show file tree
Hide file tree
Showing 20 changed files with 653 additions and 10 deletions.
514 changes: 514 additions & 0 deletions ChangeLog

Large diffs are not rendered by default.

39 changes: 39 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,3 +1,42 @@
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


changes from 1.16 to 1.17
-------------------------

Expand Down
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Currently this package supports the following formats:
* ACN (Australian Company Number)
* TFN (Australian Tax File Number)
* Belgian IBAN (International Bank Account Number)
* NN, NISS (Belgian national number)
* BTW, TVA, NWSt, ondernemingsnummer (Belgian enterprise number)
* EGN (ЕГН, Единен граждански номер, Bulgarian personal identity codes)
* PNF (ЛНЧ, Личен номер на чужденец, Bulgarian number of a foreigner)
Expand All @@ -41,6 +42,7 @@ Currently this package supports the following formats:
* BN (Canadian Business Number)
* SIN (Canadian Social Insurance Number)
* CAS RN (Chemical Abstracts Service Registry Number)
* CFI (ISO 10962 Classification of Financial Instruments)
* ESR, ISR, QR-reference (reference number on Swiss payment slips)
* Swiss social security number ("Sozialversicherungsnummer")
* UID (Unternehmens-Identifikationsnummer, Swiss business identifier)
Expand All @@ -55,6 +57,7 @@ Currently this package supports the following formats:
* NI (Número de identidad, Cuban identity card numbers)
* CUSIP number (financial security identification number)
* Αριθμός Εγγραφής Φ.Π.Α. (Cypriot VAT number)
* Czech bank account number
* DIČ (Daňové identifikační číslo, Czech VAT number)
* RČ (Rodné číslo, the Czech birth number)
* Handelsregisternummer (German company register number)
Expand All @@ -67,6 +70,7 @@ Currently this package supports the following formats:
* 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)
* NIF, sometimes N.I.F. (Numéro d'Identification Fiscale, Algeria tax number)
* EAN (International Article Number)
* CI (Cédula de identidad, Ecuadorian personal identity code)
* RUC (Registro Único de Contribuyentes, Ecuadorian company tax number)
Expand All @@ -92,6 +96,7 @@ Currently this package supports the following formats:
* Veronumero (Finnish individual tax number)
* Y-tunnus (Finnish business identifier)
* FIGI (Financial Instrument Global Identifier)
* V-number (Vinnutal, Faroe Islands tax number)
* NIF (Numéro d'Immatriculation Fiscale, French tax identification number)
* NIR (French personal identification number)
* SIREN (a French company identification number)
Expand All @@ -102,6 +107,7 @@ Currently this package supports the following formats:
* UPN (English Unique Pupil Number)
* UTR (United Kingdom Unique Taxpayer Reference)
* VAT (United Kingdom (and Isle of Man) VAT registration number)
* TIN (Taxpayer Identification Number, Ghana tax number)
* AMKA (Αριθμός Μητρώου Κοινωνικής Ασφάλισης, Greek social security number)
* FPA, ΦΠΑ, ΑΦΜ (Αριθμός Φορολογικού Μητρώου, the Greek VAT number)
* GRid (Global Release Identifier)
Expand Down Expand Up @@ -137,6 +143,7 @@ Currently this package supports the following formats:
* Codice Fiscale (Italian tax code for individuals)
* Partita IVA (Italian VAT number)
* CN (法人番号, hōjin bangō, Japanese Corporate Number)
* PIN (Personal Identification Number, Kenya tax number)
* BRN (사업자 등록 번호, South Korea Business Registration Number)
* RRN (South Korean resident registration number)
* LEI (Legal Entity Identifier)
Expand All @@ -145,11 +152,14 @@ Currently this package supports the following formats:
* 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)
* ICE (Identifiant Commun de l’Entreprise, التعريف الموحد للمقاولة, Morocco tax number)
* MAC address (Media Access Control address)
* n° TVA (taxe sur la valeur ajoutée, Monacan VAT number)
* IDNO (Moldavian company identification number)
* Montenegro IBAN (International Bank Account Number)
* PIB (Poreski Identifikacioni Broj, Montenegro tax number)
* MEID (Mobile Equipment Identifier)
* ЕДБ (Едниствен Даночен Број, North Macedonia tax number)
* VAT (Maltese VAT number)
* ID number (Mauritian national identifier)
* CURP (Clave Única de Registro de Población, Mexican personal ID)
Expand All @@ -169,6 +179,7 @@ Currently this package supports the following formats:
* 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)
* CNIC number (Pakistani Computerised National Identity Card number)
* NIP (Numer Identyfikacji Podatkowej, Polish VAT number)
* PESEL (Polish national identification number)
* REGON (Rejestr Gospodarki Narodowej, Polish register of economic units)
Expand All @@ -187,13 +198,15 @@ Currently this package supports the following formats:
* VAT (Moms, Mervärdesskatt, Swedish VAT number)
* UEN (Singapore's Unique Entity Number)
* ID za DDV (Davčna številka, Slovenian VAT number)
* Enotna matična številka občana (Unique Master Citizen 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)
* NIT (Número de Identificación Tributaria, El Salvador tax number)
* MOA (Thailand Memorandum of Association Number)
* PIN (Thailand Personal Identification Number)
* TIN (Thailand Taxpayer Identification Number)
* MF (Matricule Fiscal, Tunisia tax number)
* T.C. Kimlik No. (Turkish personal identification number)
* VKN (Vergi Kimlik Numarası, Turkish tax identification number)
* UBN (Unified Business Number, 統一編號, Taiwanese tax number)
Expand Down Expand Up @@ -267,7 +280,7 @@ also work with older versions of Python.
Copyright
---------

Copyright (C) 2010-2021 Arthur de Jong and others
Copyright (C) 2010-2022 Arthur de Jong and others

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
Expand Down
13 changes: 13 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ Available formats
au.acn
au.tfn
be.iban
be.nn
be.vat
bg.egn
bg.pnf
Expand All @@ -139,6 +140,7 @@ Available formats
ca.bn
ca.sin
casrn
cfi
ch.esr
ch.ssn
ch.uid
Expand All @@ -153,6 +155,7 @@ Available formats
cu.ni
cusip
cy.vat
cz.bankaccount
cz.dic
cz.rc
de.handelsregisternummer
Expand All @@ -165,6 +168,7 @@ Available formats
do.cedula
do.ncf
do.rnc
dz.nif
ean
ec.ci
ec.ruc
Expand All @@ -190,6 +194,7 @@ Available formats
fi.veronumero
fi.ytunnus
figi
fo.vn
fr.nif
fr.nir
fr.siren
Expand All @@ -200,6 +205,7 @@ Available formats
gb.upn
gb.utr
gb.vat
gh.tin
gr.amka
gr.vat
grid
Expand Down Expand Up @@ -235,6 +241,7 @@ Available formats
it.codicefiscale
it.iva
jp.cn
ke.pin
kr.brn
kr.rrn
lei
Expand All @@ -243,11 +250,14 @@ Available formats
lt.pvm
lu.tva
lv.pvn
ma.ice
mac
mc.tva
md.idno
me.iban
me.pib
meid
mk.edb
mt.vat
mu.nid
mx.curp
Expand All @@ -267,6 +277,7 @@ Available formats
nz.ird
pe.cui
pe.ruc
pk.cnic
pl.nip
pl.pesel
pl.regon
Expand All @@ -285,13 +296,15 @@ Available formats
se.vat
sg.uen
si.ddv
si.emso
sk.dph
sk.rc
sm.coe
sv.nit
th.moa
th.pin
th.tin
tn.mf
tr.tckimlik
tr.vkn
tw.ubn
Expand Down
5 changes: 5 additions & 0 deletions docs/stdnum.be.nn.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
stdnum.be.nn
============

.. automodule:: stdnum.be.nn
:members:
5 changes: 5 additions & 0 deletions docs/stdnum.cfi.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
stdnum.cfi
==========

.. automodule:: stdnum.cfi
:members:
5 changes: 5 additions & 0 deletions docs/stdnum.cz.bankaccount.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
stdnum.cz.bankaccount
=====================

.. automodule:: stdnum.cz.bankaccount
:members:
5 changes: 5 additions & 0 deletions docs/stdnum.dz.nif.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
stdnum.dz.nif
=============

.. automodule:: stdnum.dz.nif
:members:
5 changes: 5 additions & 0 deletions docs/stdnum.fo.vn.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
stdnum.fo.vn
============

.. automodule:: stdnum.fo.vn
:members:
5 changes: 5 additions & 0 deletions docs/stdnum.gh.tin.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
stdnum.gh.tin
=============

.. automodule:: stdnum.gh.tin
:members:
5 changes: 5 additions & 0 deletions docs/stdnum.ke.pin.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
stdnum.ke.pin
=============

.. automodule:: stdnum.ke.pin
:members:
5 changes: 5 additions & 0 deletions docs/stdnum.ma.ice.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
stdnum.ma.ice
=============

.. automodule:: stdnum.ma.ice
:members:
5 changes: 5 additions & 0 deletions docs/stdnum.me.pib.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
stdnum.me.pib
=============

.. automodule:: stdnum.me.pib
:members:
5 changes: 5 additions & 0 deletions docs/stdnum.mk.edb.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
stdnum.mk.edb
=============

.. automodule:: stdnum.mk.edb
:members:
5 changes: 5 additions & 0 deletions docs/stdnum.pk.cnic.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
stdnum.pk.cnic
==============

.. automodule:: stdnum.pk.cnic
:members:
5 changes: 5 additions & 0 deletions docs/stdnum.si.emso.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
stdnum.si.emso
==============

.. automodule:: stdnum.si.emso
:members:
5 changes: 5 additions & 0 deletions docs/stdnum.tn.mf.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
stdnum.tn.mf
============

.. automodule:: stdnum.tn.mf
:members:
4 changes: 2 additions & 2 deletions stdnum/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# __init__.py - main module
# coding: utf-8
#
# Copyright (C) 2010-2021 Arthur de Jong
# Copyright (C) 2010-2022 Arthur de Jong
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
Expand Down Expand Up @@ -43,4 +43,4 @@
__all__ = ('get_cc_module', '__version__')

# the version number of the library
__version__ = '1.17'
__version__ = '1.18'
12 changes: 5 additions & 7 deletions stdnum/gh/tin.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,11 @@
This number consists of 11 alpha-numeric characters. It begins with one of the
following prefixes:
P00 For Individuals.
C00 For Companies limited by guarantee, shares, Unlimited (i.e organisation
required to register with the RGD).
G00 Government Agencies, MDAs.
Q00 Foreign Missions, Employees of foreign missions.
V00 Public Institutions, Trusts, Co-operatives, Foreign Shareholder
(Offshore), (Entities not registered by RGD).
P00 For Individuals.
C00 For Companies limited by guarantee, shares, Unlimited (i.e organisation required to register with the RGD).
G00 Government Agencies, MDAs.
Q00 Foreign Missions, Employees of foreign missions.
V00 Public Institutions, Trusts, Co-operatives, Foreign Shareholder (Offshore), (Entities not registered by RGD).
More information:
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,6 @@ deps = flake8
commands = flake8 stdnum tests update setup.py

[testenv:docs]
use_develop = true
deps = Sphinx
commands = sphinx-build -N -b html docs {envtmpdir}/sphinx -W

0 comments on commit 60a90ed

Please sign in to comment.