[Python-modules-commits] [python-stdnum] 01/06: Import python-stdnum_1.2.orig.tar.gz

Arthur de Jong adejong at moszumanska.debian.org
Sun Oct 11 12:36:19 UTC 2015


This is an automated email from the git hooks/post-receive script.

adejong pushed a commit to branch master
in repository python-stdnum.

commit a67c8ea31af4f0bdf5eacdcc8f29617e6e592893
Author: Arthur de Jong <adejong at debian.org>
Date:   Sun Oct 11 14:05:49 2015 +0200

    Import python-stdnum_1.2.orig.tar.gz
---
 ChangeLog                               |   306 +
 MANIFEST.in                             |     4 +-
 NEWS                                    |    26 +
 PKG-INFO                                |    25 +-
 README                                  |    20 +-
 docs/index.rst                          |    16 +
 docs/stdnum.at.businessid.rst           |     5 +
 docs/stdnum.br.cnpj.rst                 |     5 +
 docs/stdnum.ch.uid.rst                  |     5 +
 docs/stdnum.ch.vat.rst                  |     5 +
 docs/stdnum.cusip.rst                   |     5 +
 docs/stdnum.de.wkn.rst                  |     5 +
 docs/stdnum.ee.ik.rst                   |     5 +
 docs/stdnum.fi.associationid.rst        |     5 +
 docs/stdnum.fi.ytunnus.rst              |     5 +
 docs/stdnum.gb.sedol.rst                |     5 +
 docs/stdnum.imo.rst                     |     5 +
 docs/stdnum.isin.rst                    |     5 +
 docs/stdnum.mx.rfc.rst                  |     5 +
 docs/stdnum.pl.pesel.rst                |     5 +
 docs/stdnum.pl.regon.rst                |     5 +
 docs/stdnum.ru.inn.rst                  |     5 +
 getcnloc.py                             |   124 +-
 getiban.py                              |     4 +-
 python_stdnum.egg-info/PKG-INFO         |    25 +-
 python_stdnum.egg-info/SOURCES.txt      |    52 +-
 python_stdnum.egg-info/pbr.json         |     1 +
 python_stdnum.egg-info/requires.txt     |     3 +
 setup.cfg                               |     1 +
 setup.py                                |     8 +
 stdnum/__init__.py                      |    18 +-
 stdnum/al/nipt.py                       |     2 +-
 stdnum/ar/cuit.py                       |     2 +-
 stdnum/{ee/kmkr.py => at/businessid.py} |    53 +-
 stdnum/bg/egn.py                        |     4 +-
 stdnum/bg/pnf.py                        |     4 +-
 stdnum/bg/vat.py                        |     4 +-
 stdnum/{do/rnc.py => br/cnpj.py}        |    59 +-
 stdnum/{co/nit.py => ch/uid.py}         |    68 +-
 stdnum/{co/nit.py => ch/vat.py}         |    69 +-
 stdnum/cn/loc.dat                       |   252 +-
 stdnum/co/nit.py                        |    33 +-
 stdnum/{do/rnc.py => cusip.py}          |    61 +-
 stdnum/{al/nipt.py => de/wkn.py}        |    62 +-
 stdnum/dk/cpr.py                        |     8 +-
 stdnum/dk/cvr.py                        |     4 +-
 stdnum/do/rnc.py                        |     2 +-
 stdnum/ec/ruc.py                        |     4 +-
 stdnum/ee/ik.py                         |   113 +
 stdnum/ee/kmkr.py                       |     4 +-
 stdnum/eu/vat.py                        |    60 +-
 stdnum/fi/__init__.py                   |     2 +
 stdnum/fi/alv.py                        |     4 +-
 stdnum/fi/associationid.py              |    94 +
 stdnum/{no/orgnr.py => fi/ytunnus.py}   |    45 +-
 stdnum/{do/rnc.py => gb/sedol.py}       |    59 +-
 stdnum/gb/vat.py                        |     4 +-
 stdnum/hu/anum.py                       |     4 +-
 stdnum/iban.dat                         |     4 +-
 stdnum/iban.py                          |     2 +-
 stdnum/ie/pps.py                        |     2 +-
 stdnum/imei.py                          |     4 +-
 stdnum/{do/rnc.py => imo.py}            |    54 +-
 stdnum/imsi.dat                         |   815 +-
 stdnum/is_/kennitala.py                 |     4 +-
 stdnum/isan.py                          |    18 +-
 stdnum/isbn.dat                         |    19 +-
 stdnum/isbn.py                          |     4 +-
 stdnum/isil.dat                         |     1 +
 stdnum/isil.py                          |     2 +
 stdnum/isin.py                          |   125 +
 stdnum/ismn.py                          |     2 +-
 stdnum/iso6346.py                       |     2 +-
 stdnum/iso9362.py                       |     8 +-
 stdnum/it/codicefiscale.py              |    10 +-
 stdnum/lv/pvn.py                        |     4 +-
 stdnum/meid.py                          |    10 +-
 stdnum/mt/vat.py                        |     4 +-
 stdnum/{fi => mx}/__init__.py           |     8 +-
 stdnum/mx/rfc.py                        |   150 +
 stdnum/nl/postcode.py                   |     2 +-
 stdnum/no/orgnr.py                      |     2 +-
 stdnum/numdb.py                         |    13 +-
 stdnum/pl/nip.py                        |     4 +-
 stdnum/pl/pesel.py                      |   121 +
 stdnum/pl/regon.py                      |    95 +
 stdnum/pt/nif.py                        |     3 +-
 stdnum/ro/cf.py                         |     4 +-
 stdnum/ro/cnp.py                        |     4 +-
 stdnum/{fi => ru}/__init__.py           |     9 +-
 stdnum/ru/inn.py                        |    93 +
 stdnum/us/atin.py                       |     4 +-
 stdnum/us/ein.py                        |     4 +-
 stdnum/us/itin.py                       |     4 +-
 stdnum/us/ptin.py                       |     2 +-
 stdnum/us/ssn.py                        |     3 +-
 stdnum/util.py                          |    51 +-
 numdb-test.dat => tests/numdb-test.dat  |     0
 tests/test_asx.doctest                  | 12307 ++++++++++++++++++++++++++++++
 tests/test_br_cnpj.doctest              |    60 +
 tests/test_br_cpf.doctest               |     7 +
 tests/test_ch_uid.doctest               |   183 +
 tests/test_ch_vat.doctest               |    68 +
 tests/test_co_nit.doctest               |   298 +
 tests/test_cusip.doctest                |   249 +
 tests/test_de_wkn.doctest               |   233 +
 tests/test_ee_ik.doctest                |   125 +
 tests/test_eu_vat.doctest               |    59 +-
 tests/test_gb_sedol.doctest             |   255 +
 tests/test_iban.doctest                 |   155 +-
 tests/test_isan.doctest                 |    12 +
 tests/test_isin.doctest                 |   343 +
 tests/test_iso6346.doctest              |     2 +-
 tests/test_markit_red6.doctest          |   449 ++
 tests/test_mx_rfc.doctest               |   531 ++
 tests/test_pl_regon.doctest             |   104 +
 tests/test_ru_inn.doctest               |    59 +
 117 files changed, 18033 insertions(+), 929 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 04bbf15..9307465 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,309 @@
+2015-10-11  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [1327045] getcnloc.py, stdnum/cn/loc.dat, stdnum/iban.dat,
+	  stdnum/imsi.dat, stdnum/isbn.dat, stdnum/isil.dat: Update
+	  database files
+
+	  This also updates the script to download updated Chinese
+	  location names.
+
+2015-10-11  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [a891c60] stdnum/al/nipt.py, stdnum/co/nit.py, stdnum/iban.py,
+	  stdnum/ie/pps.py, stdnum/imei.py, stdnum/isan.py,
+	  stdnum/iso6346.py, stdnum/it/codicefiscale.py, stdnum/meid.py,
+	  stdnum/nl/postcode.py, stdnum/numdb.py, stdnum/pt/nif.py,
+	  stdnum/us/atin.py, stdnum/us/ein.py, stdnum/us/itin.py,
+	  stdnum/us/ptin.py, stdnum/us/ssn.py, stdnum/util.py: Code style
+	  improvements
+
+	  Ensure that regular expressions are r'' strings, avoid too
+	  long lines and fix line wrapping. Also avoid catching toplevel
+	  Exception when possible and use binascii for hex to binary
+	  conversion which is available in both Python 2 and 3.
+
+2015-10-11  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [3c7a302] stdnum/cusip.py, stdnum/de/wkn.py, stdnum/gb/sedol.py,
+	  stdnum/isin.py: Convert security ids to ISIN
+
+	  Allow conversion from national securities identifiers to the
+	  international ISIN.
+
+2015-10-11  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [c565517] stdnum/de/wkn.py, tests/test_de_wkn.doctest: Add
+	  German Wertpapierkennnummer
+
+	  The format itself is pretty simple (no check digit) but this
+	  module is more for completeness sake.
+
+2015-10-10  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [961815f] stdnum/gb/sedol.py, tests/test_gb_sedol.doctest:
+	  Add SEDOL number
+
+2015-10-10  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [fb91775] stdnum/ru/__init__.py: Add information to Russian package
+
+2015-10-10  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [ebb5c07] MANIFEST.in, numdb-test.dat, stdnum/numdb.py,
+	  tests/numdb-test.dat: Move numdb test file
+
+	  This places the test database file in the tests directory.
+
+2015-10-10  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [fa8099e] stdnum/imo.py: Add int. maritime org. number (IMO)
+
+	  This adds checks for the International Maritime Organization
+	  number used to identify ships. However, there seem to be a lot
+	  of ships with an IMO number that does not follow these rules
+	  (different check digits or even length).
+
+2015-10-10  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [111b4fd] stdnum/isan.py, tests/test_isan.doctest: Fix handling
+	  of strip_check_digits in ISAN
+
+	  This fixes the compact() function to honor the strip_check_digits
+	  argument and does not validate the check digits if they are
+	  passed to validate together with strip_check_digits.
+
+2015-10-10  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [9f9d13c] stdnum/isin.py, tests/test_isin.doctest: Add
+	  international securities id (ISIN)
+
+	  This adds support for handling ISINs (International Securities
+	  Identification Number). The can contain a CUSIP but performing
+	  this additional validation is currently not performed.
+
+2015-10-09  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [522611c] stdnum/cusip.py, tests/test_cusip.doctest: Add CUSIP
+	  number
+
+2015-10-08  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [320ecea] stdnum/ch/uid.py, stdnum/ch/vat.py,
+	  tests/test_ch_uid.doctest, tests/test_ch_vat.doctest: Add Swiss
+	  UID and VAT numbers
+
+	  The Swiss VAT number (MWST, TVA, IVA, TPV) is the UID
+	  (Unternehmens-Identifikationsnummer) followed by one of the
+	  VAT abbreviations.
+
+2015-10-05  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [ec9bcb0] stdnum/mx/__init__.py, stdnum/mx/rfc.py,
+	  tests/test_mx_rfc.doctest: Add Mexican RFC number
+
+	  This adds support for the Mexican tax number RFC (Registro
+	  Federal de Contribuyentes).
+
+	  This module includes a number of checks on the number but the
+	  validation of the last check digit is disabled by default because
+	  a large number of numbers were found that were otherwise valid
+	  but had an invalid check digit.
+
+2015-10-04  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [fd0cfd9] stdnum/eu/vat.py, stdnum/util.py: Move finding VAT
+	  module to util
+
+	  This moves the finding of a VAT module to the util module so
+	  that it can be more easily re-used for non-EU countries.
+
+2015-10-04  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [38ed9c0] stdnum/co/nit.py, tests/test_co_nit.doctest: Update
+	  Colombian NIT checks
+
+	  This adds a number of tests for numbers found online. The length
+	  check has also been revisited because both shorter numbers and
+	  longer number have been found.
+
+	  This also updates the format() function to handle arbitrary
+	  length numbers.
+
+2015-10-02  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [d413f95] stdnum/isbn.py: Fix comment
+
+2015-10-02  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [3d1dbbb] stdnum/ar/cuit.py, stdnum/bg/egn.py, stdnum/bg/pnf.py,
+	  stdnum/bg/vat.py, stdnum/co/nit.py, stdnum/dk/cpr.py,
+	  stdnum/dk/cvr.py, stdnum/do/rnc.py, stdnum/ec/ruc.py,
+	  stdnum/ee/kmkr.py, stdnum/fi/alv.py, stdnum/gb/vat.py,
+	  stdnum/hu/anum.py, stdnum/is_/kennitala.py, stdnum/lv/pvn.py,
+	  stdnum/mt/vat.py, stdnum/no/orgnr.py, stdnum/pl/nip.py,
+	  stdnum/pl/pesel.py, stdnum/pl/regon.py, stdnum/ro/cf.py,
+	  stdnum/ro/cnp.py: Use zip() instead of enumerate()
+
+	  Makes the code slightly simpler and more compact.
+
+2015-10-01  Sergio Isidoro <sergio at holvi.com>
+
+	* [222a87e] stdnum/fi/__init__.py: Add alias to hetu in for finnish
+	  personal id code
+
+2015-09-27  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [e045c71] tests/test_eu_vat.doctest: Add more numbers found online
+
+2015-09-07  Dariusz Choruzy <darobial at gmail.com>
+
+	* [36217ac] stdnum/pl/regon.py, tests/test_pl_regon.doctest:
+	  Add Polish REGON number
+
+2015-09-06  Dariusz Choruzy <darobial at gmail.com>
+
+	* [a0cb61f] stdnum/pl/pesel.py: Add Polish PESEL number
+
+2015-08-16  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [5ab8d24] stdnum/ru/__init__.py, stdnum/ru/inn.py,
+	  tests/test_ru_inn.doctest: Add Russioan ИНН (INN) tax ID
+
+	  This adds a basic implementation of the Russian
+	  Идентификационный номер
+	  налогоплательщика (tax identification
+	  number). This currently only checks the format, length and check
+	  digits but not whether each of the parts of the number are valid
+	  (e.g. valid region specified).
+
+2015-08-16  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [714fa60] stdnum/br/cnpj.py, tests/test_br_cnpj.doctest: Add
+	  Brazillian CNPJ business identifier
+
+	  Add module for Cadastro Nacional da Pessoa Jurídica, the
+	  Brazillian company identifier.
+
+2015-08-16  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [b939099] getiban.py, stdnum/iban.dat, tests/test_iban.doctest:
+	  Update IBAN tests
+
+	  This updates the iban.dat file from the IBAN registry, includes
+	  a fix for handling spaces in the BBAN and adds some more IBAN
+	  examples from the IBAN registry.
+
+2015-08-16  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [7714db7] stdnum/iso9362.py: Make uppercase in compact()
+
+	  This changes the compact() function of the ISO 9362 module to
+	  make all the letters uppercase.
+
+2015-08-16  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [6afa875] setup.cfg, stdnum/imei.py, stdnum/isbn.py,
+	  stdnum/isil.py, stdnum/ismn.py, stdnum/meid.py, stdnum/us/atin.py,
+	  stdnum/us/ein.py, stdnum/us/itin.py: Turn on and improve branch
+	  coverage
+
+2015-08-16  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [e88ba0b] stdnum/dk/cpr.py, stdnum/is_/kennitala.py,
+	  stdnum/it/codicefiscale.py: Small typo and code style fixes
+
+2015-08-03  Tomas Karasek <tom.to.the.k at gmail.com>
+
+	* [243e50f] stdnum/ee/ik.py, tests/test_ee_ik.doctest: Add validation
+	  of Estonian personal ID
+
+2015-06-12  Lari Haataja <lari at holvi.com>
+
+	* [7f9c94f] stdnum/at/businessid.py: Add company register number
+	  validation for Austria
+
+2015-07-12  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [0cbba6e] : Merge Finnish numbers provided by Holvi
+
+	  This merges the Finnish numbers provided by Holvi Payment Services
+	  Oy as found here: https://github.com/holvi/python-stdnum
+
+2015-07-12  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [320326e] stdnum/fi/ytunnus.py: Split out format() function
+
+	  This uses the stdnum.fi.alv module more extensively and ensures
+	  that validate() returns a compact representation and a separate
+	  format() function is available.
+
+2015-06-23  Lari Haataja <lari at holvi.com>
+
+	* [37f7fa6] stdnum/fi/__init__.py, stdnum/fi/ytunnus.py: Add
+	  validation for Finnish y-tunnus (business identifier)
+
+2015-07-12  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [db24746] stdnum/fi/associationid.py: Add a whitelist for short
+	  numbers and fix API
+
+	  This implements separate functions compact() and format() and
+	  fixes the doctests. This also implements a whitelist of registered
+	  short numbers to avoid accidentally validating just any number.
+
+2015-06-16  Lari Haataja <lari at holvi.com>
+
+	* [8d30992] stdnum/fi/associationid.py: Validation for Finnish
+	  association identifier
+
+2015-07-12  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [e107457] : Merge changes to use CN Open Data
+
+2015-07-12  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [a1a134e] stdnum/eu/vat.py: Fall back to pysimplesoap if suds
+	  is unavailable
+
+	  Initial testing seems to suggest that proxy-support is not
+	  complete with pysimplesoap (at least httplib2 and PySocks seem
+	  to be required).
+
+2015-04-28  Lionel Elie Mamane <lmamane at debian.org>
+
+	* [8fe44f9] stdnum/eu/vat.py: Implement alternate VIES check
+
+	  Add a function to stdnum.eu.vat so that when one does a VIES VAT
+	  number check, one gets a proof (certificate) that one did the
+	  check, as defence against the VAT administration later putting
+	  this in doubt. This certificate is provided by the VIES service,
+	  if one provides one's own VAT number.
+
+2015-06-08  Jiangge Zhang <tonyseek at gmail.com>
+
+	* [6308261] stdnum/cn/loc.dat: Download and generate latest Chinese
+	  location data.
+
+2015-06-08  Jiangge Zhang <tonyseek at gmail.com>
+
+	* [12ba352] getcnloc.py: Download GB2260 data from github.com/cn.
+
+2015-04-27  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [8925ae2] tests/test_iso6346.doctest: Fix copyright header
+
+2015-04-27  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [58775d9] ChangeLog, NEWS, README, docs/index.rst,
+	  docs/stdnum.al.nipt.rst, docs/stdnum.ar.cuit.rst,
+	  docs/stdnum.cl.rut.rst, docs/stdnum.co.nit.rst,
+	  docs/stdnum.do.cedula.rst, docs/stdnum.do.rnc.rst,
+	  docs/stdnum.is_.kennitala.rst, docs/stdnum.is_.vsk.rst,
+	  docs/stdnum.iso9362.rst, docs/stdnum.no.mva.rst,
+	  docs/stdnum.no.orgnr.rst, docs/stdnum.se.orgnr.rst,
+	  docs/stdnum.sm.coe.rst, setup.py, stdnum/__init__.py: Get files
+	  ready for 1.1 release
+
 2015-04-27  Arthur de Jong <arthur at arthurdejong.org>
 
 	* [583b066] getcnloc.py, stdnum/cn/loc.dat, stdnum/iban.dat,
diff --git a/MANIFEST.in b/MANIFEST.in
index e544383..bc3f093 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -1,3 +1,3 @@
-include README NEWS ChangeLog COPYING numdb-test.dat *.py
-recursive-include tests *.doctest
+include README NEWS ChangeLog COPYING *.py
+recursive-include tests *.doctest *.dat
 recursive-include docs *.rst *.py
diff --git a/NEWS b/NEWS
index 3f584f9..f40fdee 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,29 @@
+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
 -----------------------
 
diff --git a/PKG-INFO b/PKG-INFO
index 499f848..8069044 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: python-stdnum
-Version: 1.1
+Version: 1.2
 Summary: Python module to handle standardized numbers and codes
 Home-page: http://arthurdejong.org/python-stdnum/
 Author: Arthur de Jong
@@ -15,20 +15,26 @@ Description: Parse, validate and reformat standard numbers and codes.
         
         * al.nipt: NIPT (Numri i Identifikimit për Personin e Tatueshëm, Albanian VAT 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)
         * be.vat: BTW, TVA, NWSt (Belgian VAT number)
         * bg.egn: EGN (ЕГН, Единен граждански номер, Bulgarian personal identity codes)
         * bg.pnf: PNF (ЛНЧ, Личен номер на чужденец, Bulgarian number of a foreigner)
         * bg.vat: VAT (Идентификационен номер по ДДС, Bulgarian VAT number)
+        * br.cnpj: CNPJ (Cadastro Nacional da Pessoa Jurídica, Brazillian company identifier)
         * br.cpf: CPF (Cadastro de Pessoas Físicas, Brazillian national identifier)
         * ch.ssn: Swiss social security number ("Sozialversicherungsnummer")
+        * ch.uid: UID (Unternehmens-Identifikationsnummer, Swiss business identifier)
+        * ch.vat: VAT, MWST, TVA, IVA, TPV (Mehrwertsteuernummer, the Swiss VAT number)
         * cl.rut: RUT (Rol Único Tributario, Chilean national tax number)
         * cn.ric: RIC No. (Chinese Resident Identity Card Number)
         * co.nit: NIT (Número De Identificación Tributaria, Colombian identity code)
+        * cusip: CUSIP number (financial security identification number)
         * cy.vat: Αριθμός Εγγραφής Φ.Π.Α. (Cypriot VAT number)
         * cz.dic: DIČ (Daňové identifikační číslo, Czech VAT number)
         * cz.rc: RČ (Rodné číslo, the Czech birth number)
         * de.vat: Ust ID Nr. (Umsatzsteur Identifikationnummer, German VAT number)
+        * de.wkn: Wertpapierkennnummer (German securities identification code)
         * dk.cpr: CPR (personnummer, the Danish citizen number)
         * dk.cvr: CVR (Momsregistreringsnummer, Danish VAT number)
         * do.cedula: Cedula (Dominican Republic national identification number)
@@ -36,6 +42,7 @@ Description: Parse, validate and reformat standard numbers and codes.
         * ean: EAN (International Article Number)
         * ec.ci: CI (Cédula de identidad, Ecuadorian personal identity code)
         * ec.ruc: RUC (Registro Único de Contribuyentes, Ecuadorian company tax number)
+        * ee.ik: Isikukood (Estonian Personcal ID number)
         * ee.kmkr: KMKR (Käibemaksukohuslase, Estonian VAT number)
         * es.cif: CIF (Certificado de Identificación Fiscal, Spanish company tax number)
         * es.dni: DNI (Documento nacional de identidad, Spanish personal identity codes)
@@ -44,9 +51,12 @@ Description: Parse, validate and reformat standard numbers and codes.
         * eu.at_02: SEPA Identifier of the Creditor (AT-02)
         * eu.vat: VAT (European Union VAT number)
         * fi.alv: ALV nro (Arvonlisäveronumero, Finnish VAT number)
+        * fi.associationid: Finnish Association Identifier
         * fi.hetu: HETU (Henkilötunnus, Finnish personal identity code)
+        * fi.ytunnus: Y-tunnus (Finnish business identifier)
         * fr.siren: SIREN (a French company identification number)
         * fr.tva: n° TVA (taxe sur la valeur ajoutée, French VAT number)
+        * gb.sedol: SEDOL number (Stock Exchange Daily Official List number)
         * gb.vat: VAT (United Kingdom (and Isle of Man) VAT registration number)
         * gr.vat: FPA, ΦΠΑ, ΑΦΜ (Αριθμός Φορολογικού Μητρώου, the Greek VAT number)
         * grid: GRid (Global Release Identifier)
@@ -56,12 +66,14 @@ Description: Parse, validate and reformat standard numbers and codes.
         * ie.pps: PPS No (Personal Public Service Number, Irish personal number)
         * ie.vat: VAT (Irish VAT number)
         * imei: IMEI (International Mobile Equipment Identity)
+        * imo: IMO number (International Maritime Organization number)
         * imsi: IMSI (International Mobile Subscriber Identity)
         * is_.kennitala: Kennitala (Icelandic personal and organisation identity code)
         * is_.vsk: VSK number (Virðisaukaskattsnúmer, Icelandic VAT number)
         * isan: ISAN (International Standard Audiovisual Number)
         * isbn: ISBN (International Standard Book Number)
         * isil: ISIL (International Standard Identifier for Libraries)
+        * isin: ISIN (International Securities Identification Number)
         * ismn: ISMN (International Standard Music Number)
         * iso6346: ISO 6346 (International standard for container identification)
         * iso9362: ISO 9362 (Business identifier codes)
@@ -73,6 +85,7 @@ Description: Parse, validate and reformat standard numbers and codes.
         * lv.pvn: PVN (Pievienotās vērtības nodokļa, Latvian VAT number)
         * meid: MEID (Mobile Equipment Identifier)
         * mt.vat: VAT (Maltese VAT number)
+        * mx.rfc: RFC (Registro Federal de Contribuyentes, Mexican tax number)
         * my.nric: NRIC No. (Malaysian National Registration Identity Card Number)
         * nl.brin: Brin number (Dutch number for schools)
         * nl.bsn: BSN (Burgerservicenummer, Dutch national identification number)
@@ -82,9 +95,12 @@ Description: Parse, validate and reformat standard numbers and codes.
         * no.mva: MVA (Merverdiavgift, Norwegian VAT number)
         * no.orgnr: Orgnr (Organisasjonsnummer, Norwegian organisation number)
         * pl.nip: NIP (Numer Identyfikacji Podatkowej, Polish VAT number)
+        * pl.pesel: PESEL (Polish national identification number)
+        * pl.regon: REGON (Rejestr Gospodarki Narodowej, Polish register of economic units)
         * 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)
+        * ru.inn: ИНН (Идентификационный номер налогоплательщика, Russian tax identifier)
         * se.orgnr: Orgnr (Organisationsnummer, Swedish company number)
         * se.vat: VAT (Moms, Mervärdesskatt, Swedish VAT number)
         * si.ddv: ID za DDV (Davčna številka, Slovenian VAT number)
@@ -131,5 +147,12 @@ Classifier: Intended Audience :: Telecommunications Industry
 Classifier: License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)
 Classifier: Operating System :: OS Independent
 Classifier: Programming Language :: Python
+Classifier: Programming Language :: Python :: 2
+Classifier: Programming Language :: Python :: 2.6
+Classifier: Programming Language :: Python :: 2.7
+Classifier: Programming Language :: Python :: 3
+Classifier: Programming Language :: Python :: 3.4
+Classifier: Programming Language :: Python :: 3.5
+Classifier: Topic :: Office/Business :: Financial
 Classifier: Topic :: Software Development :: Libraries :: Python Modules
 Classifier: Topic :: Text Processing :: General
diff --git a/README b/README
index 563e4eb..f9be19e 100644
--- a/README
+++ b/README
@@ -11,20 +11,26 @@ Currently this package supports the following formats:
 
  * NIPT (Numri i Identifikimit për Personin e Tatueshëm, Albanian VAT number)
  * CUIT (Código Único de Identificación Tributaria, Argentinian tax number)
+ * Austrian Company Register Numbers
  * UID (Umsatzsteuer-Identifikationsnummer, Austrian VAT number)
  * BTW, TVA, NWSt (Belgian VAT number)
  * EGN (ЕГН, Единен граждански номер, Bulgarian personal identity codes)
  * PNF (ЛНЧ, Личен номер на чужденец, Bulgarian number of a foreigner)
  * VAT (Идентификационен номер по ДДС, Bulgarian VAT number)
+ * CNPJ (Cadastro Nacional da Pessoa Jurídica, Brazillian company identifier)
  * CPF (Cadastro de Pessoas Físicas, Brazillian national identifier)
  * 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)
  * 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)
@@ -32,6 +38,7 @@ Currently this package supports the following formats:
  * 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)
  * CIF (Certificado de Identificación Fiscal, Spanish company tax number)
  * DNI (Documento nacional de identidad, Spanish personal identity codes)
@@ -40,9 +47,12 @@ Currently this package supports the following formats:
  * SEPA Identifier of the Creditor (AT-02)
  * VAT (European Union VAT number)
  * ALV nro (Arvonlisäveronumero, Finnish VAT number)
+ * Finnish Association Identifier
  * HETU (Henkilötunnus, Finnish personal identity code)
+ * Y-tunnus (Finnish business identifier)
  * SIREN (a French company identification number)
  * n° TVA (taxe sur la valeur ajoutée, French VAT number)
+ * SEDOL number (Stock Exchange Daily Official List number)
  * VAT (United Kingdom (and Isle of Man) VAT registration number)
  * FPA, ΦΠΑ, ΑΦΜ (Αριθμός Φορολογικού Μητρώου, the Greek VAT number)
  * GRid (Global Release Identifier)
@@ -52,12 +62,14 @@ Currently this package supports the following formats:
  * PPS No (Personal Public Service Number, Irish personal number)
  * VAT (Irish VAT number)
  * IMEI (International Mobile Equipment Identity)
+ * IMO number (International Maritime Organization number)
  * IMSI (International Mobile Subscriber Identity)
  * 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)
  * ISO 9362 (Business identifier codes)
@@ -69,6 +81,7 @@ Currently this package supports the following formats:
  * PVN (Pievienotās vērtības nodokļa, Latvian VAT 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)
@@ -78,9 +91,12 @@ Currently this package supports the following formats:
  * 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)
+ * ИНН (Идентификационный номер налогоплательщика, Russian tax identifier)
  * Orgnr (Organisationsnummer, Swedish company number)
  * VAT (Moms, Mervärdesskatt, Swedish VAT number)
  * ID za DDV (Davčna številka, Slovenian VAT number)
@@ -129,8 +145,8 @@ conversion functions.
 Requirements
 ------------
 
-The modules should not require any external Python modules and should be
-pure Python. The modules are developed and tested with Python 2.6 but may
+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
 also work with older versions of Python.
 
 Copyright
diff --git a/docs/index.rst b/docs/index.rst
index 971502f..59df1d5 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -87,20 +87,26 @@ Available formats
 
    al.nipt
    ar.cuit
+   at.businessid
    at.uid
    be.vat
    bg.egn
    bg.pnf
    bg.vat
+   br.cnpj
    br.cpf
    ch.ssn
+   ch.uid
+   ch.vat
    cl.rut
    cn.ric
    co.nit
+   cusip
    cy.vat
    cz.dic
    cz.rc
    de.vat
+   de.wkn
    dk.cpr
    dk.cvr
    do.cedula
@@ -108,6 +114,7 @@ Available formats
    ean
    ec.ci
    ec.ruc
+   ee.ik
    ee.kmkr
    es.cif
    es.dni
@@ -116,9 +123,12 @@ Available formats
    eu.at_02
    eu.vat
    fi.alv
+   fi.associationid
    fi.hetu
+   fi.ytunnus
    fr.siren
    fr.tva
+   gb.sedol
    gb.vat
    gr.vat
    grid
@@ -128,12 +138,14 @@ Available formats
    ie.pps
    ie.vat
    imei
+   imo
    imsi
    is_.kennitala
    is_.vsk
    isan
    isbn
    isil
+   isin
    ismn
    iso6346
    iso9362
@@ -145,6 +157,7 @@ Available formats
    lv.pvn
    meid
    mt.vat
+   mx.rfc
    my.nric
    nl.brin
    nl.bsn
@@ -154,9 +167,12 @@ Available formats
    no.mva
    no.orgnr
    pl.nip
+   pl.pesel
+   pl.regon
    pt.nif
    ro.cf
    ro.cnp
+   ru.inn
    se.orgnr
    se.vat
    si.ddv
diff --git a/docs/stdnum.at.businessid.rst b/docs/stdnum.at.businessid.rst
new file mode 100644
index 0000000..d417d01
--- /dev/null
+++ b/docs/stdnum.at.businessid.rst
@@ -0,0 +1,5 @@
+stdnum.at.businessid
+====================
+
+.. automodule:: stdnum.at.businessid
+   :members:
\ No newline at end of file
diff --git a/docs/stdnum.br.cnpj.rst b/docs/stdnum.br.cnpj.rst
new file mode 100644
index 0000000..894f69c
--- /dev/null
+++ b/docs/stdnum.br.cnpj.rst
@@ -0,0 +1,5 @@
+stdnum.br.cnpj
+==============
+
+.. automodule:: stdnum.br.cnpj
+   :members:
\ No newline at end of file
diff --git a/docs/stdnum.ch.uid.rst b/docs/stdnum.ch.uid.rst
new file mode 100644
index 0000000..cea72ce
--- /dev/null
+++ b/docs/stdnum.ch.uid.rst
@@ -0,0 +1,5 @@
+stdnum.ch.uid
+=============
+
+.. automodule:: stdnum.ch.uid
+   :members:
\ No newline at end of file
diff --git a/docs/stdnum.ch.vat.rst b/docs/stdnum.ch.vat.rst
new file mode 100644
index 0000000..bf94a69
--- /dev/null
+++ b/docs/stdnum.ch.vat.rst
@@ -0,0 +1,5 @@
+stdnum.ch.vat
+=============
+
+.. automodule:: stdnum.ch.vat
+   :members:
\ No newline at end of file
diff --git a/docs/stdnum.cusip.rst b/docs/stdnum.cusip.rst
new file mode 100644
index 0000000..f0e30f7
--- /dev/null
+++ b/docs/stdnum.cusip.rst
@@ -0,0 +1,5 @@
+stdnum.cusip
+============
+
+.. automodule:: stdnum.cusip
+   :members:
\ No newline at end of file
diff --git a/docs/stdnum.de.wkn.rst b/docs/stdnum.de.wkn.rst
new file mode 100644
index 0000000..4c6a17c
--- /dev/null
+++ b/docs/stdnum.de.wkn.rst
@@ -0,0 +1,5 @@
+stdnum.de.wkn
+=============
+
+.. automodule:: stdnum.de.wkn
+   :members:
\ No newline at end of file
diff --git a/docs/stdnum.ee.ik.rst b/docs/stdnum.ee.ik.rst
new file mode 100644
index 0000000..24189d4
--- /dev/null
+++ b/docs/stdnum.ee.ik.rst
@@ -0,0 +1,5 @@
+stdnum.ee.ik
+============
+
+.. automodule:: stdnum.ee.ik
+   :members:
\ No newline at end of file
diff --git a/docs/stdnum.fi.associationid.rst b/docs/stdnum.fi.associationid.rst
new file mode 100644
index 0000000..fa48a7c
--- /dev/null
+++ b/docs/stdnum.fi.associationid.rst
@@ -0,0 +1,5 @@
+stdnum.fi.associationid
+=======================
+
+.. automodule:: stdnum.fi.associationid
+   :members:
\ No newline at end of file
diff --git a/docs/stdnum.fi.ytunnus.rst b/docs/stdnum.fi.ytunnus.rst
new file mode 100644
index 0000000..7af7de8
--- /dev/null
+++ b/docs/stdnum.fi.ytunnus.rst
@@ -0,0 +1,5 @@
+stdnum.fi.ytunnus
+=================
+
+.. automodule:: stdnum.fi.ytunnus
+   :members:
\ No newline at end of file
diff --git a/docs/stdnum.gb.sedol.rst b/docs/stdnum.gb.sedol.rst
new file mode 100644
index 0000000..c72bb72
--- /dev/null
+++ b/docs/stdnum.gb.sedol.rst
@@ -0,0 +1,5 @@
+stdnum.gb.sedol
+===============
+
+.. automodule:: stdnum.gb.sedol
+   :members:
\ No newline at end of file
diff --git a/docs/stdnum.imo.rst b/docs/stdnum.imo.rst
new file mode 100644
index 0000000..7a14a40
--- /dev/null
+++ b/docs/stdnum.imo.rst
@@ -0,0 +1,5 @@
+stdnum.imo
+==========
+
+.. automodule:: stdnum.imo
+   :members:
\ No newline at end of file
diff --git a/docs/stdnum.isin.rst b/docs/stdnum.isin.rst
new file mode 100644
index 0000000..c132e8a
--- /dev/null
+++ b/docs/stdnum.isin.rst
@@ -0,0 +1,5 @@
+stdnum.isin
+===========
+
+.. automodule:: stdnum.isin
+   :members:
\ No newline at end of file
diff --git a/docs/stdnum.mx.rfc.rst b/docs/stdnum.mx.rfc.rst
new file mode 100644
index 0000000..71b24df
--- /dev/null
+++ b/docs/stdnum.mx.rfc.rst
@@ -0,0 +1,5 @@
+stdnum.mx.rfc
+=============
+
+.. automodule:: stdnum.mx.rfc
+   :members:
\ No newline at end of file
diff --git a/docs/stdnum.pl.pesel.rst b/docs/stdnum.pl.pesel.rst
new file mode 100644
index 0000000..5fed28e
--- /dev/null
+++ b/docs/stdnum.pl.pesel.rst
@@ -0,0 +1,5 @@
+stdnum.pl.pesel
+===============
+
+.. automodule:: stdnum.pl.pesel
+   :members:
\ No newline at end of file
diff --git a/docs/stdnum.pl.regon.rst b/docs/stdnum.pl.regon.rst
new file mode 100644
index 0000000..b443414
--- /dev/null
+++ b/docs/stdnum.pl.regon.rst
@@ -0,0 +1,5 @@
+stdnum.pl.regon
+===============
+
+.. automodule:: stdnum.pl.regon
+   :members:
\ No newline at end of file
diff --git a/docs/stdnum.ru.inn.rst b/docs/stdnum.ru.inn.rst
new file mode 100644
index 0000000..66c0921
--- /dev/null
+++ b/docs/stdnum.ru.inn.rst
@@ -0,0 +1,5 @@
+stdnum.ru.inn
+=============
+
+.. automodule:: stdnum.ru.inn
+   :members:
\ No newline at end of file
diff --git a/getcnloc.py b/getcnloc.py
index c54d68b..136cbf2 100755
--- a/getcnloc.py
+++ b/getcnloc.py
@@ -1,8 +1,8 @@
 #!/usr/bin/env python
 
-# getcnloc.py - script to fetch data from the China (PRC) government site
+# getcnloc.py - script to fetch data from the CN Open Data community
 #
-# Copyright (C) 2014 Jiangge Zhang
+# Copyright (C) 2014-2015 Jiangge Zhang
 # Copyright (C) 2015 Arthur de Jong
 #
 # This library is free software; you can redistribute it and/or
@@ -24,89 +24,69 @@ from __future__ import print_function, unicode_literals
 
 import sys
 import codecs
-from urlparse import urljoin
-from operator import itemgetter
+from collections import OrderedDict
 from datetime import datetime
 
 import requests
-import lxml.html
 
 
-revisions_url = 'http://www.stats.gov.cn/tjsj/tjbz/xzqhdm/'
... 22060 lines suppressed ...

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-stdnum.git



More information about the Python-modules-commits mailing list