diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2017-04-11 22:12:24 +0200 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2017-04-11 22:12:24 +0200 |
commit | 35542c1e718572970f9120886482b2824b7db266 (patch) | |
tree | b8c4daae2a27debcee2d180b5c6966058ae4a1e1 | |
parent | 93459d3592bab7a298acbe3b6422ebd3b13cac3d (diff) |
Get files ready for 1.6 release1.6
-rw-r--r-- | ChangeLog | 144 | ||||
-rw-r--r-- | MANIFEST.in | 3 | ||||
-rw-r--r-- | NEWS | 21 | ||||
-rw-r--r-- | README | 10 | ||||
-rw-r--r-- | docs/index.rst | 6 | ||||
-rw-r--r-- | docs/stdnum.ar.cbu.rst | 5 | ||||
-rw-r--r-- | docs/stdnum.eu.eic.rst | 5 | ||||
-rw-r--r-- | docs/stdnum.eu.nace.rst | 5 | ||||
-rw-r--r-- | docs/stdnum.lei.rst | 5 | ||||
-rw-r--r-- | docs/stdnum.mc.tva.rst | 5 | ||||
-rw-r--r-- | docs/stdnum.rs.pib.rst | 5 | ||||
-rw-r--r-- | stdnum/__init__.py | 12 |
12 files changed, 218 insertions, 8 deletions
@@ -1,3 +1,147 @@ +2017-04-10 Arthur de Jong <arthur@arthurdejong.org> + + * [93459d3] stdnum/cn/loc.dat, stdnum/eu/nace.dat, stdnum/iban.dat, + stdnum/imsi.dat, stdnum/isbn.dat: Update database files + +2017-04-10 Arthur de Jong <arthur@arthurdejong.org> + + * [bb1712d] online_check/README, online_check/check.js, + online_check/jquery-1.7.1.js, online_check/jquery-1.7.1.min.js, + online_check/stdnum.wsgi, online_check/template.html: Add simple + online check example + + This adds the code that is used to find formats for which a + supplied number is valid. This is the code that is used on + https://arthurdejong.org/python-stdnum/check/ + +2017-04-10 Arthur de Jong <arthur@arthurdejong.org> + + * [5398247] stdnum/lei.py, tests/test_lei.doctest: Add Legal + Entity Identifier + +2017-04-10 Arthur de Jong <arthur@arthurdejong.org> + + * [e844b52] stdnum/iban.py, stdnum/iso7064/mod_97_10.py: Integrate + base10 conversion into Mod 97, 10 + + This moves the conversion of an alphanumeric string to a numeric + representation for modulo 97 calculation to the mod_97_10 module + because this mechanism seems to be used by multiple formats. + +2017-04-10 Arthur de Jong <arthur@arthurdejong.org> + + * [1b3d16e] stdnum/es/nie.py: Add missing export (__all__) + +2017-04-10 Arthur de Jong <arthur@arthurdejong.org> + + * [72f5c6c] stdnum/rs/__init__.py, stdnum/rs/pib.py, + tests/test_rs_pib.doctest: Add Serbian Poreski Identifikacioni Broj + +2017-04-10 Arthur de Jong <arthur@arthurdejong.org> + + * [800205c] tox.ini: Print warnings during tox run + +2017-04-07 Arthur de Jong <arthur@arthurdejong.org> + + * [7493eca] stdnum/cusip.py, stdnum/ean.py, stdnum/ec/ci.py, + stdnum/isin.py, stdnum/tr/tckimlik.py: Use a slightly more + readable weight alternation + + Switch to a slightly more readable syntax for alternating between + two weights in checksums calculations. + +2017-04-01 Arthur de Jong <arthur@arthurdejong.org> + + * [23b2150] stdnum/eu/eic.py, tests/test_eu_eic.doctest: Add + European EIC (Energy Identification Code) + +2017-03-26 Arthur de Jong <arthur@arthurdejong.org> + + * [194f025] stdnum/meid.py, tests/test_robustness.doctest: Add + unicode robustness tests + + This tests a few unicode strings and fixes a bug in the MEID + module. + +2017-03-26 Arthur de Jong <arthur@arthurdejong.org> + + * [d43c394] stdnum/es/referenciacatastral.py, + tests/test_es_referenciacatastral.doctest: Add test for Ñ in + Referencia Catastral + + This supports the Referencia Catastral with an Ñ in it for + both byte strings (Python 2) and unicode strings (Python 2 and + 3). Support for literal unicode strings in Python 2 doctests is + flaky so the test is a bit ugly. + + This also adds a few numbers that were found online. Sadly no + real numbers with an Ñ in it have been found so the one in the + test was constructed. + +2017-03-26 Arthur de Jong <arthur@arthurdejong.org> + + * [61d73c1] getnace.py, stdnum/eu/nace.dat, stdnum/eu/nace.py, + tests/test_robustness.doctest: Add European NACE classification + + This number is used to classify business. Validation is done + based on a downloaded registry. + +2017-03-26 Arthur de Jong <arthur@arthurdejong.org> + + * [649f073] stdnum/mc/tva.py: Remove unused import + +2017-03-19 Arthur de Jong <arthur@arthurdejong.org> + + * [c957318] stdnum/fr/tva.py, stdnum/mc/__init__.py, + stdnum/mc/tva.py, tests/test_eu_vat.doctest: Add support for + Monaco VAT number + + The number uses the French TVA number but, unlike normal French + VAT numbers, they are not valid French SIREN numbers. + + See https://github.com/arthurdejong/python-stdnum/issues/46 + +2016-12-11 Arthur de Jong <arthur@arthurdejong.org> + + * [5b43857] stdnum/au/tfn.py: Remove unused import + +2016-12-01 Greg Kuwaye <gkuwaye@lyft.com> + + * [7d16ea5] stdnum/us/ein.dat: Add new 47 EIN prefix; fix duplicate + 46; move 81 + + 47 appears to be a new Internet campus code. Prefix 46 + was listed twice, once under the Philadelphia campus and + again under the Internet campus. This error may be seen + on the IRS website itself. The Wikipedia article on EIN + (https://en.wikipedia.org/wiki/Employer_Identification_Number) + does not have 46 listed twice. 81 has moved from the Philadelphia + campus to the Internet campus. + +2016-11-14 Luciano Rossi <lukio@gcoop.coop> + + * [dcde8f4] stdnum/ar/cbu.py, tests/test_ar_cbu.doctest: Implement + CBU (unique bank code) of Argentina + + See https://github.com/arthurdejong/python-stdnum/issues/43 + +2016-11-14 Arthur de Jong <arthur@arthurdejong.org> + + * [da18e3b] setup.py, stdnum/fi/associationid.py, stdnum/meid.py, + tests/test_mx_rfc.doctest, tox.ini: Add Python 2.6 support + + This also brings the list of Python versions in setup.py in line + with tox.ini. + +2016-11-13 Arthur de Jong <arthur@arthurdejong.org> + + * [62ebbce] ChangeLog, NEWS, README, docs/index.rst, + docs/stdnum.au.abn.rst, docs/stdnum.au.acn.rst, + docs/stdnum.au.tfn.rst, docs/stdnum.es.ccc.rst, + docs/stdnum.es.cups.rst, docs/stdnum.es.iban.rst, + docs/stdnum.es.referenciacatastral.rst, stdnum/__init__.py: + Get files ready for 1.5 release + 2016-11-13 Arthur de Jong <arthur@arthurdejong.org> * [c9beb00] stdnum/cn/loc.dat, stdnum/iban.dat, stdnum/imsi.dat, diff --git a/MANIFEST.in b/MANIFEST.in index bc3f093..faa84ef 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,3 +1,4 @@ -include README NEWS ChangeLog COPYING *.py +include README NEWS ChangeLog COPYING *.py tox.ini recursive-include tests *.doctest *.dat recursive-include docs *.rst *.py +recursive-include online_check * @@ -1,3 +1,20 @@ +changes from 1.5 to 1.6 +----------------------- + +* add modules for the following number formats: + - CBU (Clave Bancaria Uniforme, Argentine bank account number) + (thanks Luciano Rossi) + - EIC (European Energy Identification Code) + - NACE (classification for businesses in the European Union) + - LEI (Legal Entity Identifier) + - n° TVA (taxe sur la valeur ajoutée, Monacan VAT number) + - PIB (Poreski Identifikacioni Broj, Serbian tax identification number) +* add online check example that finds valid formats for a given number +* fix support for Ñ in Spanish Referencia Catastral +* updates to U.S. Employer Identification Number (thanks Greg Kuwaye) +* various minor improvements + + changes from 1.4 to 1.5 ----------------------- @@ -9,8 +26,8 @@ changes from 1.4 to 1.5 - CUPS (Código Unificado de Punto de Suministro, Supply Point Unified Code) - Spanish IBAN (International Bank Account Number) - Referencia Catastral (Spanish real estate property id) -* The IBAN module now support validating the country-specific part -* The Belgian VAT number is now also referenced as businessid +* the IBAN module now support validating the country-specific part +* the Belgian VAT number is now also referenced as businessid * add a Tox configuration file @@ -10,6 +10,7 @@ Available 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 * UID (Umsatzsteuer-Identifikationsnummer, Austrian VAT number) @@ -52,6 +53,8 @@ Currently this package supports the following formats: * NIF (Número de Identificación Fiscal, Spanish VAT number) * Referencia Catastral (Spanish real estate property id) * SEPA Identifier of the Creditor (AT-02) + * 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 @@ -87,9 +90,11 @@ Currently this package supports the following formats: * 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) * MEID (Mobile Equipment Identifier) * VAT (Maltese VAT number) * RFC (Registro Federal de Contribuyentes, Mexican tax number) @@ -107,6 +112,7 @@ Currently this package supports the following formats: * 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) @@ -159,13 +165,13 @@ Requirements ------------ The modules should not require any external Python modules and should be pure -Python. The modules are developed and tested with Python 2.7 and 3.5 but may +Python. The modules are developed and tested with Python 2.7 and 3.6 but may also work with older versions of Python. Copyright --------- -Copyright (C) 2010-2016 Arthur de Jong and others +Copyright (C) 2010-2017 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 diff --git a/docs/index.rst b/docs/index.rst index 3e4096f..56c6fc7 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -87,6 +87,7 @@ Available formats :toctree: al.nipt + ar.cbu ar.cuit at.businessid at.uid @@ -129,6 +130,8 @@ Available formats es.nif es.referenciacatastral eu.at_02 + eu.eic + eu.nace eu.vat fi.alv fi.associationid @@ -164,9 +167,11 @@ Available formats issn it.codicefiscale it.iva + lei lt.pvm lu.tva lv.pvn + mc.tva meid mt.vat mx.rfc @@ -184,6 +189,7 @@ Available formats pt.nif ro.cf ro.cnp + rs.pib ru.inn se.orgnr se.vat diff --git a/docs/stdnum.ar.cbu.rst b/docs/stdnum.ar.cbu.rst new file mode 100644 index 0000000..5cf6781 --- /dev/null +++ b/docs/stdnum.ar.cbu.rst @@ -0,0 +1,5 @@ +stdnum.ar.cbu +============= + +.. automodule:: stdnum.ar.cbu + :members:
\ No newline at end of file diff --git a/docs/stdnum.eu.eic.rst b/docs/stdnum.eu.eic.rst new file mode 100644 index 0000000..c9a8769 --- /dev/null +++ b/docs/stdnum.eu.eic.rst @@ -0,0 +1,5 @@ +stdnum.eu.eic +============= + +.. automodule:: stdnum.eu.eic + :members:
\ No newline at end of file diff --git a/docs/stdnum.eu.nace.rst b/docs/stdnum.eu.nace.rst new file mode 100644 index 0000000..e474b40 --- /dev/null +++ b/docs/stdnum.eu.nace.rst @@ -0,0 +1,5 @@ +stdnum.eu.nace +============== + +.. automodule:: stdnum.eu.nace + :members:
\ No newline at end of file diff --git a/docs/stdnum.lei.rst b/docs/stdnum.lei.rst new file mode 100644 index 0000000..c8aec9d --- /dev/null +++ b/docs/stdnum.lei.rst @@ -0,0 +1,5 @@ +stdnum.lei +========== + +.. automodule:: stdnum.lei + :members:
\ No newline at end of file diff --git a/docs/stdnum.mc.tva.rst b/docs/stdnum.mc.tva.rst new file mode 100644 index 0000000..0b20960 --- /dev/null +++ b/docs/stdnum.mc.tva.rst @@ -0,0 +1,5 @@ +stdnum.mc.tva +============= + +.. automodule:: stdnum.mc.tva + :members:
\ No newline at end of file diff --git a/docs/stdnum.rs.pib.rst b/docs/stdnum.rs.pib.rst new file mode 100644 index 0000000..09e8710 --- /dev/null +++ b/docs/stdnum.rs.pib.rst @@ -0,0 +1,5 @@ +stdnum.rs.pib +============= + +.. automodule:: stdnum.rs.pib + :members:
\ No newline at end of file diff --git a/stdnum/__init__.py b/stdnum/__init__.py index 777a09b..523b0df 100644 --- a/stdnum/__init__.py +++ b/stdnum/__init__.py @@ -1,7 +1,7 @@ # __init__.py - main module # coding: utf-8 # -# Copyright (C) 2010-2016 Arthur de Jong +# Copyright (C) 2010-2017 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 @@ -26,6 +26,7 @@ standard numbers and codes in various formats. Currently this package supports the following formats: * al.nipt: NIPT (Numri i Identifikimit për Personin e Tatueshëm, Albanian VAT number) +* ar.cbu: CBU (Clave Bancaria Uniforme, Argentine bank account number) * ar.cuit: CUIT (Código Único de Identificación Tributaria, Argentinian tax number) * at.businessid: Austrian Company Register Numbers * at.uid: UID (Umsatzsteuer-Identifikationsnummer, Austrian VAT number) @@ -68,6 +69,8 @@ Currently this package supports the following formats: * es.nif: NIF (Número de Identificación Fiscal, Spanish VAT number) * es.referenciacatastral: Referencia Catastral (Spanish real estate property id) * eu.at_02: SEPA Identifier of the Creditor (AT-02) +* eu.eic: EIC (European Energy Identification Code) +* eu.nace: NACE (classification for businesses in the European Union) * eu.vat: VAT (European Union VAT number) * fi.alv: ALV nro (Arvonlisäveronumero, Finnish VAT number) * fi.associationid: Finnish Association Identifier @@ -103,9 +106,11 @@ Currently this package supports the following formats: * issn: ISSN (International Standard Serial Number) * it.codicefiscale: Codice Fiscale (Italian tax code for individuals) * it.iva: Partita IVA (Italian VAT number) +* lei: LEI (Legal Entity Identifier) * 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) +* mc.tva: n° TVA (taxe sur la valeur ajoutée, Monacan VAT number) * meid: MEID (Mobile Equipment Identifier) * mt.vat: VAT (Maltese VAT number) * mx.rfc: RFC (Registro Federal de Contribuyentes, Mexican tax number) @@ -123,6 +128,7 @@ Currently this package supports the following formats: * 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) +* rs.pib: PIB (Poreski Identifikacioni Broj, Serbian tax identification number) * ru.inn: ИНН (Идентификационный номер налогоплательщика, Russian tax identifier) * se.orgnr: Orgnr (Organisationsnummer, Swedish company number) * se.vat: VAT (Moms, Mervärdesskatt, Swedish VAT number) @@ -160,10 +166,10 @@ Traceback (most recent call last): ... InvalidChecksum: ... -Apart from the validate() function, modules generally provide extra +Apart from the validate() function, many modules provide extra parsing, validation, formatting or conversion functions. """ # the version number of the library -__version__ = '1.5' +__version__ = '1.6' |