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

Arthur de Jong adejong at moszumanska.debian.org
Sat Jan 6 18:30:51 UTC 2018


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

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

commit 9cacf491bccb7259c157b15a6d84ad01b68c6288
Author: Arthur de Jong <adejong at debian.org>
Date:   Sat Jan 6 17:52:39 2018 +0100

    Import python-stdnum_1.8.1.orig.tar.gz
---
 ChangeLog                            | 265 +++++++++++++++++++++++++
 MANIFEST.in                          |   3 +-
 NEWS                                 |  31 +++
 PKG-INFO                             | 371 +++++++++++++++++++++--------------
 README                               |  49 +++--
 docs/conf.py                         |   8 +-
 docs/index.rst                       |  58 ++++--
 docs/stdnum.bic.rst                  |   5 +
 docs/stdnum.casrn.rst                |   5 +
 docs/stdnum.do.ncf.rst               |   5 +
 docs/stdnum.eu.banknote.rst          |   5 +
 docs/stdnum.in_.aadhaar.rst          |   5 +
 docs/stdnum.in_.pan.rst              |   5 +
 docs/stdnum.is_.kennitala.rst        |   4 +-
 docs/stdnum.is_.vsk.rst              |   4 +-
 docs/stdnum.iso9362.rst              |   5 -
 online_check/check.js                |  37 +++-
 online_check/stdnum.wsgi             |   6 +-
 python_stdnum.egg-info/PKG-INFO      | 371 +++++++++++++++++++++--------------
 python_stdnum.egg-info/SOURCES.txt   |  42 +++-
 python_stdnum.egg-info/requires.txt  |   7 +-
 setup.cfg                            |   3 +
 setup.py                             |  15 +-
 stdnum/__init__.py                   | 146 +-------------
 stdnum/{iso9362.py => bic.py}        |   5 +-
 stdnum/casrn.py                      |  76 +++++++
 stdnum/cn/loc.dat                    |   2 +-
 stdnum/do/cedula.py                  | 171 +++++++++-------
 stdnum/do/ncf.py                     | 132 +++++++++++++
 stdnum/do/rnc.py                     | 118 ++++++++++-
 stdnum/eu/at_02.py                   |   6 +-
 stdnum/{do/rnc.py => eu/banknote.py} |  57 +++---
 stdnum/eu/nace.dat                   |   2 +-
 stdnum/eu/vat.py                     |  21 +-
 stdnum/imsi.dat                      | 173 +++++++++-------
 stdnum/in_/__init__.py               |  21 ++
 stdnum/{do/rnc.py => in_/aadhaar.py} |  71 ++++---
 stdnum/in_/pan.py                    | 120 +++++++++++
 stdnum/isbn.dat                      |  34 ++--
 stdnum/iso9362.py                    |  72 ++-----
 stdnum/tr/tckimlik.py                |  17 +-
 stdnum/us/ein.dat                    |   2 +-
 stdnum/util.py                       |  73 ++++---
 tests/test_casrn.doctest             | 105 ++++++++++
 tests/test_do_cedula.doctest         |   1 +
 tests/test_do_ncf.doctest            | 159 +++++++++++++++
 tests/test_do_ncf.py                 |  56 ++++++
 tests/test_do_rnc.doctest            |   4 +-
 tests/test_do_rnc.py                 |  76 +++++++
 tests/test_eu_banknote.doctest       |  73 +++++++
 tests/test_eu_vat.py                 |  49 +++++
 tests/test_in_pan.doctest            |  40 ++++
 tests/test_util.doctest              |  19 ++
 tox.ini                              |  13 +-
 update/README                        |   3 +
 getcnloc.py => update/cn_loc.py      |  13 +-
 update/do_whitelists.py              |  93 +++++++++
 getnace.py => update/eu_nace.py      |  41 ++--
 getiban.py => update/iban.py         |  12 +-
 getimsi.py => update/imsi.py         |  36 ++--
 getisbn.py => update/isbn.py         |  39 ++--
 getisil.py => update/isil.py         |  26 +--
 getmybp.py => update/my_bp.py        |  29 +--
 getnumlist.py => update/numlist.py   |  45 +++--
 update/requirements.txt              |   2 +
 65 files changed, 2571 insertions(+), 991 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index c88a5d0..5b52ce4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,268 @@
+2018-01-06  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [820c233] README: Fix feedback section in README to be valid RST
+
+2018-01-06  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [ab8a871] setup.py: Update long description in compatible way
+
+	  This ensures that the README is read correctly on all supported
+	  Python interpreters.
+
+	  Fixes 1304122
+
+2018-01-05  5j9 <5j9 at users.noreply.github.com>
+
+	* [1304122] setup.py: setup.py: Open README with utf-8 encoding
+
+	  Fixes #59
+
+2018-01-03  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [ae89e82] ChangeLog, MANIFEST.in, NEWS, README, docs/conf.py,
+	  docs/index.rst, docs/stdnum.casrn.rst, docs/stdnum.do.ncf.rst,
+	  docs/stdnum.eu.banknote.rst, docs/stdnum.in_.aadhaar.rst,
+	  docs/stdnum.in_.pan.rst, setup.cfg, stdnum/__init__.py,
+	  update/numlist.py: Get files ready for 1.8 release
+
+2018-01-03  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [db9b278] tox.ini: Fix Sphinx dependency name
+
+2018-01-03  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [fbb9d24] docs/index.rst, stdnum/__init__.py: Move get_cc_module()
+	  function to package for public use
+
+2018-01-03  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [7bb0e5f] setup.py, stdnum/util.py: Try the non-caching zeep
+	  client on older versions
+
+	  This uses the "normal" Client class from zeep if CachingClient
+	  is not available (this is the case on older zeep versions).
+
+	  This also records (and documents) the dependencies for SOAP
+	  libraries in setup.py.
+
+2018-01-01  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [6d7ba46] .travis.yml: Add a Travis configuration file
+
+2018-01-01  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [db7be06] stdnum/do/ncf.py, stdnum/do/rnc.py, tox.ini: Fix Python
+	  2.6 compatibility
+
+2018-01-01  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [8107f08] stdnum/cn/loc.dat, stdnum/eu/nace.dat, stdnum/imsi.dat,
+	  stdnum/isbn.dat, stdnum/us/ein.dat: Update database files
+
+	  Note that the Swift IBAN Registry in txt format is currently
+	  unavailable so hasn't been updated.
+
+2018-01-01  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [e781eee] MANIFEST.in, tox.ini, update/README, update/cn_loc.py,
+	  update/do_whitelists.py, update/eu_nace.py, update/iban.py,
+	  update/imsi.py, update/isbn.py, update/isil.py, update/my_bp.py,
+	  update/numlist.py, update/requirements.txt: Move update scripts
+	  to own directory
+
+	  This moves all the update scripts to their own directory so they
+	  don't clutter the toplevel directory.
+
+	  This also ensures that the scripts are passed through flake8
+	  and makes some adjustments for that alongside a few other cleanups.
+
+2017-12-01  srikanthlogic <srik.lak at gmail.com>
+
+	* [442aa82] stdnum/in_/pan.py, tests/test_in_pan.doctest: Add
+	  Indian PAN
+
+	  Closes https://github.com/arthurdejong/python-stdnum/pull/57
+
+2017-12-31  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [8a34b4e] stdnum/util.py: Correctly quote regular expression
+
+	  Fixes a6ae1d0.
+
+2017-12-31  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [271b9e4] docs/stdnum.is_.kennitala.rst, docs/stdnum.is_.vsk.rst,
+	  tox.ini: Add Sphinx documentation checks
+
+	  This also fixes an escaping issue in the automatically generated
+	  documentation for modules that end with an underscore.
+
+2017-12-06  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [be094f8] README, docs/conf.py, docs/index.rst, getnumlist.py,
+	  setup.py, stdnum/__init__.py: Use README as package long
+	  description
+
+	  This also shortens the stdnum module docstring and updates the
+	  Sphinx configuration.
+
+2017-12-01  srikanthlogic <srik.lak at gmail.com>
+
+	* [c576bc4] stdnum/in_/__init__.py, stdnum/in_/aadhaar.py: Add
+	  Indian Aadhaar
+
+	  Closes https://github.com/arthurdejong/python-stdnum/pull/56
+
+2017-11-26  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [bafdb70] stdnum/casrn.py, tests/test_casrn.doctest: Add CAS
+	  Registry Number
+
+	  This adds validation of the Chemical Abstracts Service Registry
+	  Number.
+
+2017-11-24  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [d5f97e9] online_check/check.js, online_check/stdnum.wsgi:
+	  Change output of online lookups
+
+	  This puts the number before the number name to make it a little
+	  clearer.
+
+2017-11-24  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [f7b4615] online_check/check.js: Store online check numbers
+	  in history
+
+	  This updates the browser history with with the numbers that
+	  were checked so that you can easily go back and forth between
+	  checked number.
+
+2017-11-24  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [7cb114b] online_check/stdnum.wsgi: Correctly escape number for
+	  use in attribute
+
+2017-11-26  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [90067f7] tests/test_eu_banknote.doctest: Fix incorrect banknote
+	  test
+
+	  Also add a few verified correct numbers.
+
+	  Fixes b7b812c.
+
+2017-11-22  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [b7b812c] stdnum/eu/banknote.py, tests/test_eu_banknote.doctest:
+	  Add Euro bank notes serial number
+
+	  This adds validation of serial numbers that appear on Euro bills.
+
+2017-11-02  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [a6ae1d0] docs/index.rst, docs/stdnum.bic.rst,
+	  docs/stdnum.iso9362.rst, stdnum/bic.py, stdnum/iso9362.py,
+	  stdnum/util.py: Rename stdnum.iso9362 to stdnum.bic
+
+	  The new name is more descriptive and easier to remember. This
+	  makes stdnum.iso9362 a compatibility module that can be imported
+	  with the old name but provides a deprecation warning.
+
+2017-10-22  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [6be1754] stdnum/util.py: Support zeep as preferred SOAP library
+
+	  This tries zeep, suds (suds-jurko) and falls back to using
+	  pysimplesoap for performing the SOAP requests. From those zeep
+	  seems to be the best supported implementation.
+
+2017-10-22  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [9ab1d66] stdnum/eu/vat.py, tests/test_eu_vat.py: Add tests for
+	  the VIES VAT validation functions
+
+	  These tests are not normally run as part of the normal test suite
+	  and have to be explicitly enabled by setting the ONLINE_TESTS
+	  environment variable to avoid overloading these online services.
+
+2017-10-18  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [ab21159] stdnum/do/ncf.py, tests/test_do_ncf.py: Add
+	  stdnum.do.ncf.check_dgii()
+
+	  This adds functions for querying the Dirección General de
+	  Impuestos Internos (DGII) API to check if the RNC and NCF
+	  combination provided is valid.
+
+2017-10-18  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [6b09c5d] stdnum/do/rnc.py, tests/test_do_rnc.py, tox.ini:
+	  Add stdnum.do.rnc.check_dgii() and search_dgii()
+
+	  This adds functions for querying the Dirección General de
+	  Impuestos Internos (DGII) API to validate the RNC and search
+	  the register by keyword.
+
+2017-10-16  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [665bf7a] stdnum/do/ncf.py, tests/test_do_ncf.doctest: Add
+	  Dominican Republic receipt number (NCF)
+
+	  This number does not have a check digit but uses a distinctive
+	  enough format that it should not be too great of a problem.
+
+2017-10-14  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [4ab1e3b] stdnum/eu/vat.py, stdnum/tr/tckimlik.py, stdnum/util.py:
+	  Cache SOAP client in get_soap_client()
+
+	  This caches the instantiated SOAP client classes in the util
+	  module instead of doing the caching in every module that performs
+	  requests.
+
+2017-10-18  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [cecd35c] getdowhitelists.py: Add a script for updating RNC and
+	  Cedula whitelists
+
+2017-10-13  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [399321b] stdnum/do/rnc.py, tests/test_do_rnc.doctest: Also add
+	  a whitelist for Dominican Republic RNC
+
+	  Some RNCs are apparently valid while having an incorrect check
+	  digit (though most appear to be inactive). There also appear to
+	  be valid RNCs that do not have 9 digits.
+
+2017-10-13  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [58511dc] stdnum/do/cedula.py, tests/test_do_cedula.doctest:
+	  Add a few new numbers to the Cedula whitelist
+
+	  These numbers were found to be valid but had an invalid check
+	  digit nonetheless (though most appear to be inactive). Also
+	  there appear to be a few valid Cedula that do not have 11 digits.
+
+2017-10-13  David Arnold <dar at devco.co>
+
+	* [74c1721] stdnum/util.py, tests/test_util.doctest: Handle unicode
+	  arguments in get_cc_module()
+
+	  Closes https://github.com/arthurdejong/python-stdnum/issues/54
+
+2017-09-15  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [12cd072] stdnum/eu/at_02.py: Fix spelling errors
+
+2017-09-12  Arthur de Jong <arthur at arthurdejong.org>
+
+	* [4496ffe] ChangeLog, NEWS, README, docs/index.rst,
+	  docs/stdnum.ca.bn.rst, docs/stdnum.ca.sin.rst,
+	  docs/stdnum.de.idnr.rst, docs/stdnum.ee.registrikood.rst,
+	  docs/stdnum.fi.veronumero.rst, docs/stdnum.gb.upn.rst,
+	  stdnum/__init__.py: Get files ready for 1.7 release
+
 2017-09-12  Arthur de Jong <arthur at arthurdejong.org>
 
 	* [28092b3] stdnum/damm.py: Add example with custom table to Damm
diff --git a/MANIFEST.in b/MANIFEST.in
index faa84ef..ac3b424 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -1,4 +1,5 @@
 include README NEWS ChangeLog COPYING *.py tox.ini
-recursive-include tests *.doctest *.dat
+recursive-include tests *.doctest *.dat *.py
 recursive-include docs *.rst *.py
 recursive-include online_check *
+recursive-include update README requirements.txt *.py
diff --git a/NEWS b/NEWS
index b71bcf2..2ec21a4 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,34 @@
+changes from 1.8 to 1.8.1
+-------------------------
+
+* fix a packaging issue in the long description
+
+
+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
+
+Development of the NCF format validation and DGII web service validation
+was funded by iterativo | http://iterativo.do
+
+
 changes from 1.6 to 1.7
 -----------------------
 
diff --git a/PKG-INFO b/PKG-INFO
index f9e4652..570c478 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,167 +1,238 @@
 Metadata-Version: 1.1
 Name: python-stdnum
-Version: 1.7
+Version: 1.8.1
 Summary: Python module to handle standardized numbers and codes
 Home-page: https://arthurdejong.org/python-stdnum/
 Author: Arthur de Jong
 Author-email: arthur at arthurdejong.org
 License: LGPL
-Description: Parse, validate and reformat standard numbers and codes.
+Description-Content-Type: UNKNOWN
+Description: python-stdnum
+        =============
         
-        This library offers functions for parsing, validating and reformatting
-        standard numbers and codes in various formats.
+        A Python module to parse, validate and reformat standard numbers and codes
+        in different formats. It contains a large collection of number formats.
+        
+        Basically any number or code that has some validation mechanism available
+        or some common formatting is eligible for inclusion in this library.
+        
+        https://arthurdejong.org/python-stdnum/
+        
+        
+        Available 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)
-        * au.abn: ABN (Australian Business Number)
-        * au.acn: ACN (Australian Company Number)
-        * au.tfn: TFN (Australian Tax File Number)
-        * be.vat: BTW, TVA, NWSt, ondernemingsnummer (Belgian enterprise 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)
-        * ca.bn: BN (Canadian Business Number)
-        * ca.sin: SIN (Canadian Social Insurance Number)
-        * 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.idnr: IdNr (Steuerliche Identifikationsnummer, German personal tax 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)
-        * do.rnc: RNC (Registro Nacional del Contribuyente, Dominican Republic tax number)
-        * 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)
-        * ee.registrikood: Registrikood (Estonian organisation registration code)
-        * es.ccc: CCC (Código Cuenta Corriente, Spanish Bank Account Code)
-        * es.cif: CIF (Certificado de Identificación Fiscal, Spanish company tax number)
-        * es.cups: CUPS (Código Unificado de Punto de Suministro, Supply Point Unified Code)
-        * es.dni: DNI (Documento nacional de identidad, Spanish personal identity codes)
-        * es.iban: Spanish IBAN (International Bank Account Number)
-        * es.nie: NIE (Número de Identificación de Extranjeros, Spanish foreigner number)
-        * 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
-        * fi.hetu: HETU (Henkilötunnus, Finnish personal identity code)
-        * fi.veronumero: Veronumero (Finnish individual tax number)
-        * fi.ytunnus: Y-tunnus (Finnish business identifier)
-        * fr.nif: NIF (Numéro d'Immatriculation Fiscale, French tax identification number)
-        * fr.nir: NIR (French personal identification number)
-        * fr.siren: SIREN (a French company identification number)
-        * fr.siret: SIRET (a French company establishment identification number)
-        * fr.tva: n° TVA (taxe sur la valeur ajoutée, French VAT number)
-        * gb.nhs: NHS (United Kingdom National Health Service patient identifier)
-        * gb.sedol: SEDOL number (Stock Exchange Daily Official List number)
-        * gb.upn: UPN (English Unique Pupil 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)
-        * hr.oib: OIB (Osobni identifikacijski broj, Croatian identification number)
-        * hu.anum: ANUM (Közösségi adószám, Hungarian VAT number)
-        * iban: IBAN (International Bank Account Number)
-        * ie.pps: PPS No (Personal Public Service Number, Irish personal number)
-        * ie.vat: VAT (Irish tax reference 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)
-        * 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)
-        * 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)
-        * nl.btw: BTW-nummer (Omzetbelastingnummer, the Dutch VAT number)
-        * nl.onderwijsnummer: Onderwijsnummer (Dutch student school number)
-        * nl.postcode: Postcode (Dutch postal code)
-        * 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)
-        * 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)
-        * si.ddv: ID za DDV (Davčna številka, Slovenian VAT number)
-        * sk.dph: IČ DPH (IČ pre daň z pridanej hodnoty, Slovak VAT number)
-        * sk.rc: RČ (Rodné číslo, the Slovak birth number)
-        * sm.coe: COE (Codice operatore economico, San Marino national tax number)
-        * tr.tckimlik: T.C. Kimlik No. (Turkish personal identification number)
-        * us.atin: ATIN (U.S. Adoption Taxpayer Identification Number)
-        * us.ein: EIN (U.S. Employer Identification Number)
-        * us.itin: ITIN (U.S. Individual Taxpayer Identification Number)
-        * us.ptin: PTIN (U.S. Preparer Tax Identification Number)
-        * us.rtn: RTN (Routing transport number)
-        * us.ssn: SSN (U.S. Social Security Number)
-        * us.tin: TIN (U.S. Taxpayer Identification Number)
+         * 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)
+         * ABN (Australian Business Number)
+         * ACN (Australian Company Number)
+         * TFN (Australian Tax File Number)
+         * BTW, TVA, NWSt, ondernemingsnummer (Belgian enterprise number)
+         * EGN (ЕГН, Единен граждански номер, Bulgarian personal identity codes)
+         * PNF (ЛНЧ, Личен номер на чужденец, Bulgarian number of a foreigner)
+         * VAT (Идентификационен номер по ДДС, Bulgarian VAT number)
+         * BIC (ISO 9362 Business identifier codes)
+         * CNPJ (Cadastro Nacional da Pessoa Jurídica, Brazillian company identifier)
+         * CPF (Cadastro de Pessoas Físicas, Brazillian national identifier)
+         * BN (Canadian Business Number)
+         * SIN (Canadian Social Insurance Number)
+         * CAS RN (Chemical Abstracts Service Registry Number)
+         * 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)
+         * IdNr (Steuerliche Identifikationsnummer, German personal tax 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)
+         * NCF (Números de Comprobante Fiscal, Dominican Republic receipt number)
+         * RNC (Registro Nacional del Contribuyente, Dominican Republic tax number)
+         * 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)
+         * Registrikood (Estonian organisation registration code)
+         * CCC (Código Cuenta Corriente, Spanish Bank Account Code)
+         * CIF (Certificado de Identificación Fiscal, Spanish company tax number)
+         * CUPS (Código Unificado de Punto de Suministro, Supply Point Unified Code)
+         * DNI (Documento nacional de identidad, Spanish personal identity codes)
+         * Spanish IBAN (International Bank Account Number)
+         * NIE (Número de Identificación de Extranjeros, Spanish foreigner number)
+         * NIF (Número de Identificación Fiscal, Spanish VAT number)
+         * Referencia Catastral (Spanish real estate property id)
+         * SEPA Identifier of the Creditor (AT-02)
+         * Euro banknote serial numbers
+         * 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
+         * HETU (Henkilötunnus, Finnish personal identity code)
+         * Veronumero (Finnish individual tax number)
+         * Y-tunnus (Finnish business identifier)
+         * NIF (Numéro d'Immatriculation Fiscale, French tax identification number)
+         * NIR (French personal identification number)
+         * SIREN (a French company identification number)
+         * SIRET (a French company establishment identification number)
+         * n° TVA (taxe sur la valeur ajoutée, French VAT number)
+         * NHS (United Kingdom National Health Service patient identifier)
+         * SEDOL number (Stock Exchange Daily Official List number)
+         * UPN (English Unique Pupil Number)
+         * VAT (United Kingdom (and Isle of Man) VAT registration number)
+         * FPA, ΦΠΑ, ΑΦΜ (Αριθμός Φορολογικού Μητρώου, the Greek VAT number)
+         * GRid (Global Release Identifier)
+         * OIB (Osobni identifikacijski broj, Croatian identification number)
+         * ANUM (Közösségi adószám, Hungarian VAT number)
+         * IBAN (International Bank Account Number)
+         * PPS No (Personal Public Service Number, Irish personal number)
+         * VAT (Irish tax reference number)
+         * IMEI (International Mobile Equipment Identity)
+         * IMO number (International Maritime Organization number)
+         * IMSI (International Mobile Subscriber Identity)
+         * Aadhaar (Indian digital resident personal identity number)
+         * PAN (Permanent Account Number, Indian income tax identifier)
+         * 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)
+         * 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)
+         * NRIC No. (Malaysian National Registration Identity Card Number)
+         * Brin number (Dutch number for schools)
+         * BSN (Burgerservicenummer, Dutch national identification number)
+         * BTW-nummer (Omzetbelastingnummer, the Dutch VAT number)
+         * Onderwijsnummer (Dutch student school number)
+         * Postcode (Dutch postal code)
+         * 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)
+         * PIB (Poreski Identifikacioni Broj, Serbian tax identification number)
+         * ИНН (Идентификационный номер налогоплательщика, Russian tax identifier)
+         * Orgnr (Organisationsnummer, Swedish company number)
+         * VAT (Moms, Mervärdesskatt, Swedish VAT number)
+         * ID za DDV (Davčna številka, Slovenian VAT 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)
+         * T.C. Kimlik No. (Turkish personal identification number)
+         * ATIN (U.S. Adoption Taxpayer Identification Number)
+         * EIN (U.S. Employer Identification Number)
+         * ITIN (U.S. Individual Taxpayer Identification Number)
+         * PTIN (U.S. Preparer Tax Identification Number)
+         * RTN (Routing transport number)
+         * SSN (U.S. Social Security Number)
+         * TIN (U.S. Taxpayer Identification Number)
         
         Furthermore a number of generic check digit algorithms are available:
         
-        * damm: The Damm algorithm
-        * iso7064.mod_11_10: The ISO 7064 Mod 11, 10 algorithm
-        * iso7064.mod_11_2: The ISO 7064 Mod 11, 2 algorithm
-        * iso7064.mod_37_2: The ISO 7064 Mod 37, 2 algorithm
-        * iso7064.mod_37_36: The ISO 7064 Mod 37, 36 algorithm
-        * iso7064.mod_97_10: The ISO 7064 Mod 97, 10 algorithm
-        * luhn: The Luhn and Luhn mod N algorithms
-        * verhoeff: The Verhoeff algorithm
-        
-        All modules implement a common interface:
-        
-        >>> from stdnum import isbn
-        >>> isbn.validate('978-9024538270')
-        '9789024538270'
-        >>> isbn.validate('978-9024538271')
-        Traceback (most recent call last):
-            ...
-        InvalidChecksum: ...
-        
-        Apart from the validate() function, many modules provide extra
-        parsing, validation, formatting or conversion functions.
+         * the Verhoeff algorithm
+         * the Damm algorithm
+         * the Luhn and Luhn mod N algorithms
+         * some algorithms described in ISO/IEC 7064: Mod 11, 2, Mod 37, 2,
+           Mod 97, 10, Mod 11, 10 and Mod 37, 36
+        
+        Basically any number or code that has some validation mechanism available
+        or some common formatting is eligible for inclusion into this library.
+        
+        These modules generally do not provide background information on the meaning
+        and use of the specified numbers, only parsing and handling functions.
+        
+        Interface
+        ---------
+        
+        All modules implement a common interface. For example for ISBN validation:
+        
+            >>> from stdnum import isbn
+            >>> isbn.validate('978-9024538270')
+            '9789024538270'
+            >>> isbn.validate('978-9024538271')
+            Traceback (most recent call last):
+                ...
+            InvalidChecksum: ...
+        
+        Most of these modules implement the following functions:
+        
+         * `validate()`
+            validate the correctness of the passed number and return a compact
+            representation of the number invalid numbers are rejected with one of the
+            exceptions from the stdnum.exceptions module
+         * `compact()`
+           return a compact representation of the number or code this function
+           generally does not do validation but may raise exceptions for wildly
+           incorrect numbers
+         * `format()`
+           return a formatted version of the number in the preferred format this
+           function generally expects to be passed a valid number or code
+        
+        Apart from the above, the module may add extra parsing, validation or
+        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.7 and 3.6 but may
+        also work with older versions of Python.
+        
+        Copyright
+        ---------
+        
+        Copyright (C) 2010-2018 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
+        License as published by the Free Software Foundation; either
+        version 2.1 of the License, or (at your option) any later version.
+        
+        This library is distributed in the hope that it will be useful,
+        but WITHOUT ANY WARRANTY; without even the implied warranty of
+        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+        Lesser General Public License for more details.
+        
+        You should have received a copy of the GNU Lesser General Public
+        License along with this library; if not, write to the Free Software
+        Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+        02110-1301 USA
+        
+        Feedback and bug reports
+        ------------------------
+        
+        If you have any questions regarding python-stdnum, would like to report a bug
+        or request addition of a format please send an email to
+        <python-stdnum-users at lists.arthurdejong.org>
+        Patches and code contributions are more than welcome.
         
 Platform: UNKNOWN
 Classifier: Development Status :: 5 - Production/Stable
diff --git a/README b/README
index 08dec83..fd0a92b 100644
--- a/README
+++ b/README
@@ -2,7 +2,13 @@ python-stdnum
 =============
 
 A Python module to parse, validate and reformat standard numbers and codes
-in different formats.
+in different formats. It contains a large collection of number formats.
+
+Basically any number or code that has some validation mechanism available
+or some common formatting is eligible for inclusion in this library.
+
+https://arthurdejong.org/python-stdnum/
+
 
 Available formats
 -----------------
@@ -21,10 +27,12 @@ Currently this package supports the following formats:
  * EGN (ЕГН, Единен граждански номер, Bulgarian personal identity codes)
  * PNF (ЛНЧ, Личен номер на чужденец, Bulgarian number of a foreigner)
  * VAT (Идентификационен номер по ДДС, Bulgarian VAT number)
+ * BIC (ISO 9362 Business identifier codes)
  * CNPJ (Cadastro Nacional da Pessoa Jurídica, Brazillian company identifier)
  * CPF (Cadastro de Pessoas Físicas, Brazillian national identifier)
  * BN (Canadian Business Number)
  * SIN (Canadian Social Insurance Number)
+ * CAS RN (Chemical Abstracts Service Registry Number)
  * Swiss social security number ("Sozialversicherungsnummer")
  * UID (Unternehmens-Identifikationsnummer, Swiss business identifier)
  * VAT, MWST, TVA, IVA, TPV (Mehrwertsteuernummer, the Swiss VAT number)
@@ -41,6 +49,7 @@ Currently this package supports the following formats:
  * CPR (personnummer, the Danish citizen number)
  * CVR (Momsregistreringsnummer, Danish VAT number)
  * 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)
  * EAN (International Article Number)
  * CI (Cédula de identidad, Ecuadorian personal identity code)
@@ -57,6 +66,7 @@ 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)
+ * Euro banknote serial numbers
  * EIC (European Energy Identification Code)
  * NACE (classification for businesses in the European Union)
  * VAT (European Union VAT number)
@@ -84,6 +94,8 @@ Currently this package supports the following formats:
  * IMEI (International Mobile Equipment Identity)
  * IMO number (International Maritime Organization number)
  * IMSI (International Mobile Subscriber Identity)
+ * Aadhaar (Indian digital resident personal identity number)
+ * PAN (Permanent Account Number, Indian income tax identifier)
  * Kennitala (Icelandic personal and organisation identity code)
  * VSK number (Virðisaukaskattsnúmer, Icelandic VAT number)
  * ISAN (International Standard Audiovisual Number)
@@ -92,7 +104,6 @@ Currently this package supports the following formats:
  * ISIN (International Securities Identification Number)
  * ISMN (International Standard Music Number)
  * ISO 6346 (International standard for container identification)
- * ISO 9362 (Business identifier codes)
  * ISSN (International Standard Serial Number)
  * Codice Fiscale (Italian tax code for individuals)
  * Partita IVA (Italian VAT number)
@@ -152,17 +163,29 @@ and use of the specified numbers, only parsing and handling functions.
 Interface
 ---------
 
+All modules implement a common interface. For example for ISBN validation:
+
+    >>> from stdnum import isbn
+    >>> isbn.validate('978-9024538270')
+    '9789024538270'
+    >>> isbn.validate('978-9024538271')
+    Traceback (most recent call last):
+        ...
+    InvalidChecksum: ...
+
 Most of these modules implement the following functions:
 
-validate() - validate the correctness of the passed number and return a
-             compact representation of the number
-             invalid numbers are rejected with one of the exceptions
-             from the stdnum.exceptions module
-compact() - return a compact representation of the number or code
-            this function generally does not do validation but may raise
-            exceptions for wildly incorrect numbers
-format() - return a formatted version of the number in the preferred format
-           this function generally expects to be passed a valid number or code
+ * `validate()`
+    validate the correctness of the passed number and return a compact
+    representation of the number invalid numbers are rejected with one of the
+    exceptions from the stdnum.exceptions module
+ * `compact()`
+   return a compact representation of the number or code this function
+   generally does not do validation but may raise exceptions for wildly
+   incorrect numbers
+ * `format()`
+   return a formatted version of the number in the preferred format this
+   function generally expects to be passed a valid number or code
 
 Apart from the above, the module may add extra parsing, validation or
 conversion functions.
@@ -177,7 +200,7 @@ also work with older versions of Python.
 Copyright
 ---------
 
-Copyright (C) 2010-2017 Arthur de Jong and others
+Copyright (C) 2010-2018 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
@@ -199,5 +222,5 @@ Feedback and bug reports
 
 If you have any questions regarding python-stdnum, would like to report a bug
 or request addition of a format please send an email to
-  <python-stdnum-users at lists.arthurdejong.org>
+<python-stdnum-users at lists.arthurdejong.org>
 Patches and code contributions are more than welcome.
diff --git a/docs/conf.py b/docs/conf.py
index 27938fd..e3976fe 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -46,7 +46,7 @@ master_doc = 'index'
 
 # General information about the project.
 project = u'python-stdnum'
-copyright = u'2013, Arthur de Jong'
+copyright = u'2013-2018, Arthur de Jong'
 
 # The version info for the project you're documenting, acts as replacement for
 # |version| and |release|, also used in various other places throughout the
@@ -69,7 +69,7 @@ release = version
 
 # List of patterns, relative to source directory, that match files and
 # directories to ignore when looking for source files.
-exclude_patterns = ['_*', '.svn']
+exclude_patterns = ['_*', '.svn', '.git']
 
 # The reST default role (used for this markup: `text`) to use for all documents.
 #default_role = None
@@ -132,7 +132,7 @@ html_theme = 'default'
 
 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
 # using the given strftime format.
-html_last_updated_fmt = '%b %d, %Y'
+html_last_updated_fmt = '%Y-%m-%d'
 
 # If true, SmartyPants will be used to convert quotes and dashes to
 # typographically correct entities.
@@ -189,3 +189,5 @@ man_pages = [
 
 # If true, show URL addresses after external links.
 #man_show_urls = False
+
+intersphinx_mapping = {'python': ('https://docs.python.org/3', None)}
diff --git a/docs/index.rst b/docs/index.rst
index dd1fbcc..aa769d1 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -1,15 +1,7 @@
 .. module:: stdnum
 
-python-stdnum
-=============
-
-A Python module to parse, validate and reformat standard numbers and codes
-in different formats. It contains a large collection of number formats.
-
-Basically any number or code that has some validation mechanism available
-or some common formatting is eligible for inclusion in this library.
-
-https://arthurdejong.org/python-stdnum/
+.. include:: ../README
+   :end-before: Available formats
 
 
 Common Interface
@@ -17,26 +9,26 @@ Common Interface
 
 Most of the number format modules implement the following functions:
 
-.. function:: validate(number)
+.. function:: module.validate(number)
 
    Validate the number and return a compact, consistent representation of
    the number or code. If the validation fails,
    :mod:`an exception <.exceptions>` is raised that indicates the type of
    error.
 
-.. function:: is_valid(number)
+.. function:: module.is_valid(number)
 
-   Return either True or False depending on whether the passed number is
-   in any supported and valid form and passes all embedded checks of the
+   Return either ``True`` or ``False`` depending on whether the passed number
+   is in any supported and valid form and passes all embedded checks of the
    number. This function should never raise an exception.
 
-.. function:: compact(number)
+.. function:: module.compact(number)
 
    Return a compact representation of the number or code. This function
    generally does not do validation but may raise exceptions for wildly
    invalid numbers.
 
-.. function:: format(number)
+.. function:: module.format(number)
 
    Return a formatted version of the number in the preferred format.
... 4585 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