Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2014-10-19 19:11:16 +0200
committerArthur de Jong <arthur@arthurdejong.org>2014-10-19 19:11:16 +0200
commit147eeb11337d7feb2efffb96065e38140abe94dd (patch)
tree4bce73a9e795bcef9fd6a02b8c4baebec99047a9
parent72c0ff14f6c1e7da4b6a62fb8d940c35a74e68a8 (diff)
Get files ready for 1.0 release1.0
-rw-r--r--ChangeLog195
-rw-r--r--NEWS18
-rw-r--r--README10
-rw-r--r--docs/index.rst8
-rw-r--r--docs/stdnum.ch.ssn.rst5
-rw-r--r--docs/stdnum.cn.ric.rst5
-rw-r--r--docs/stdnum.ec.ci.rst5
-rw-r--r--docs/stdnum.ec.ruc.rst5
-rw-r--r--docs/stdnum.eu.at_02.rst5
-rw-r--r--docs/stdnum.iso6346.rst5
-rw-r--r--docs/stdnum.it.codicefiscale.rst5
-rw-r--r--docs/stdnum.us.rtn.rst5
-rwxr-xr-xgetnumlist.py5
-rwxr-xr-xsetup.py10
-rw-r--r--stdnum/__init__.py12
15 files changed, 286 insertions, 12 deletions
diff --git a/ChangeLog b/ChangeLog
index 1d546ef..b42d1f3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,198 @@
+2014-10-19 Arthur de Jong <arthur@arthurdejong.org>
+
+ * [72c0ff1] stdnum/iso6346.py: Remove unused import
+
+2014-10-19 Arthur de Jong <arthur@arthurdejong.org>
+
+ * [e713cc7] stdnum/iban.dat, stdnum/imsi.dat, stdnum/isbn.dat,
+ stdnum/isil.dat: Update database files
+
+2014-10-13 Denis Krienbühl <denis@href.ch>
+
+ * [256aa49] stdnum/ch/__init__.py, stdnum/ch/ssn.py: Adds the
+ Swiss social security number
+
+ Also known as "Sozialversicherungsnummer" / "Neue AHV Nummer".
+
+2014-10-18 Arthur de Jong <arthur@arthurdejong.org>
+
+ * [2cc50e2] stdnum/eu/at_02.py, stdnum/iban.py, stdnum/imei.py,
+ stdnum/iso7064/mod_11_10.py, stdnum/iso7064/mod_11_2.py,
+ stdnum/iso7064/mod_37_2.py, stdnum/iso7064/mod_37_36.py,
+ stdnum/iso7064/mod_97_10.py, stdnum/luhn.py, stdnum/util.py,
+ stdnum/verhoeff.py: Only catch Exception
+
+2014-10-17 Arthur de Jong <arthur@arthurdejong.org>
+
+ * [e2948bb] : Add Ecuadorian CI and RUC numbers
+
+ Add modules for Ecuadorian Identification Card (CI - Cédula
+ de identidad) and Fiscal Numbers (RUC - Registro Único de
+ Contribuyentes)
+
+ See: https://github.com/arthurdejong/python-stdnum/pull/12
+
+2014-10-17 Arthur de Jong <arthur@arthurdejong.org>
+
+ * [e5250be] stdnum/ec/ci.py, stdnum/ec/ruc.py,
+ tests/test_ec_ci.doctest, tests/test_ec_ruc.doctest: Validate
+ parts of numbers
+
+ This raises exceptions when the provice or establishment number
+ part of the number contains invalid values.
+
+2014-10-17 Arthur de Jong <arthur@arthurdejong.org>
+
+ * [10a044f] stdnum/ec/ci.py, stdnum/ec/ruc.py: Refactor checksum
+ functions
+
+ Use the CI checks from within the RUC module for natural RUC
+ numbers (thereby eliminating a bug in the RUC checksum calculation)
+ and simplify the checksum functions.
+
+2014-10-17 Arthur de Jong <arthur@arthurdejong.org>
+
+ * [f61b855] stdnum/ec/ci.py, stdnum/ec/ruc.py,
+ tests/test_ec_ci.doctest, tests/test_ec_ruc.doctest: Use
+ dedicated doctests
+
+ This moves a number of the existing test cases to dedicated doctest
+ files and extend the tests with more numbers and corner cases.
+
+ This also fixes a few docstrings.
+
+2014-10-12 Jonathan Finlay <jfinlay@riseup.net>
+
+ * [e8f1ca6] stdnum/ec/__init__.py, stdnum/ec/ci.py, stdnum/ec/ruc.py:
+ Add Ecuadorian CI and RUC numbers
+
+ Add modules for Ecuadorian Identification Card (CI - Cédula
+ de identidad) and Fiscal Numbers (RUC - Registro Único de
+ Contribuyentes)
+
+2014-10-06 Arthur de Jong <arthur@arthurdejong.org>
+
+ * [2700b7a] : Add Chinese Resident Identity Card Number
+
+2014-10-06 Jiangge Zhang <tonyseek@gmail.com>
+
+ * [141d576] stdnum/cn/ric.py, tests/test_cn_ric.doctest: Support
+ the Resident Identity Card Number of People's Republic China
+
+2014-10-05 Jiangge Zhang <tonyseek@gmail.com>
+
+ * [10ae548] getcnloc.py, stdnum/cn/loc.dat: Download locations
+ from the China (PRC) government site
+
+2014-10-05 Jiangge Zhang <tonyseek@gmail.com>
+
+ * [e9eb546] stdnum/cn/__init__.py: Add stdnum.cn package for Chinese
+ (PRC) numbers
+
+2014-10-05 Arthur de Jong <arthur@arthurdejong.org>
+
+ * [97ac94d] stdnum/my/nric.py, tests/test_my_nric.doctest: Update
+ NRIC tests
+
+2014-10-05 Arthur de Jong <arthur@arthurdejong.org>
+
+ * [123e9cb] getmybp.py, stdnum/my/bp.dat: Update URLs for Malaysian
+ code lists
+
+ This updates the URLs for the state and country codes as published
+ by the National Registration Department of Malaysia and changes
+ the parsing to the new page layout.
+
+ This also updates the data file.
+
+ https://github.com/arthurdejong/python-stdnum/issues/14
+
+2014-09-01 Tony Bajan <tony.bajan@onefinestay.com>
+
+ * [86f60a2] stdnum/us/rtn.py: Add US bank routing transit numbers
+
+2014-07-05 Arthur de Jong <arthur@arthurdejong.org>
+
+ * [fbb0316] getisbn.py: Use ElementTree for simpler XML parsing
+
+2014-07-05 Arthur de Jong <arthur@arthurdejong.org>
+
+ * [03e4f97] getisbn.py, stdnum/isbn.dat: Fix getisbn script and
+ update ISBN data file
+
+2014-04-11 Arthur de Jong <arthur@arthurdejong.org>
+
+ * [26517fe] getnumlist.py, stdnum/__init__.py: Improve package
+ docstring formatting and show example
+
+2014-03-18 Sharoon Thomas <sharoon.thomas@openlabs.co.in>
+
+ * [85dd6f2] stdnum/iso6346.py, tests/test_iso6346.doctest: Add
+ support for ISO6346
+
+ Add validation and creation of check digit for ISO6346 codes.
+
+ See: https://github.com/arthurdejong/python-stdnum/pull/9
+
+2014-03-05 Jussi Räsänen <jussi@skyred.fi>
+
+ * [2405c89] stdnum/eu/vat.py: Added a simple backwards compability
+ check
+
+2014-02-17 Arthur de Jong <arthur@arthurdejong.org>
+
+ * [a4012f5] stdnum/ie/pps.py, stdnum/ie/vat.py,
+ tests/test_eu_vat.doctest: Add support for 2013 extension of
+ Irish PPS Numbers
+
+ References: - https://www.welfare.ie/en/Pages/PPSN.aspx -
+ http://www.citizensinformation.ie/en/social_welfare/irish_social_welfare_system/personal_public_service_number.html
+2014-02-06 Arthur de Jong <arthur@arthurdejong.org>
+
+ * [71d9837] stdnum/at_02.py, stdnum/eu/at_02.py: Rename AT-02
+ module to stdnum.eu.at_02
+
+2014-02-05 Sergi Almacellas Abellana <sergi@koolpi.com>
+
+ * [099078e] stdnum/at_02.py: Add SEPA Creditor identifier (AT-02)
+
+2014-02-02 Arthur de Jong <arthur@arthurdejong.org>
+
+ * [1ac00a0] stdnum/it/codicefiscale.py,
+ tests/test_it_codicefiscale.doctest: Add an Italian Codice
+ Fiscale module
+
+ This module validates 16 digit Italian tax codes for individuals.
+ https://en.wikipedia.org/wiki/Italian_fiscal_code_card
+
+ It is based on the pycodicefiscale module that can be found here:
+ https://github.com/baxeico/pycodicefiscale
+
+ Functions have been renamed to follow the stdnum naming scheme:
+ isvalid() -> is_valid(), control_code -> calc_check_digit(),
+ get_birthday() -> get_birth_date(), get_sex() -> get_gender(). The
+ build() function for generating tax codes (based on name,
+ birth place and date) has been left out because this number
+ cannot be uniquely constructed with this information alone
+ (numbers are issued by the Italian tax office with a mechanism
+ handle duplicates).
+
+ Addresses trac ticket #9.
+
+2014-01-01 Arthur de Jong <arthur@arthurdejong.org>
+
+ * [c3d669c] setup.py: Remove requirement on distribute
+
+ This accidentally slipped into 907e410. 2013-12-31 Arthur de
+Jong <arthur@arthurdejong.org>
+
+ * [d933aab] .gitignore, ChangeLog, NEWS, README, docs/index.rst,
+ docs/stdnum.my.nric.rst, docs/stdnum.nl.brin.rst,
+ docs/stdnum.nl.postcode.rst, docs/stdnum.us.atin.rst,
+ docs/stdnum.us.ein.rst, docs/stdnum.us.itin.rst,
+ docs/stdnum.us.ptin.rst, docs/stdnum.us.tin.rst, getiban.py,
+ getimsi.py, stdnum/__init__.py: Get files ready for 0.9 release
+
2013-12-31 Arthur de Jong <arthur@arthurdejong.org>
* [5c1765e] stdnum/iban.dat, stdnum/isbn.dat: Update database files
diff --git a/NEWS b/NEWS
index 47a403b..d64ee92 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,21 @@
+changes from 0.9 to 1.0
+-----------------------
+
+* add modules for the following number formats:
+ - Swiss social security number ("Sozialversicherungsnummer")
+ - RIC No. (Chinese Resident Identity Card Number)
+ - CI (Cédula de identidad, Ecuadorian personal identity code)
+ - RUC (Registro Único de Contribuyentes, Ecuadorian company tax number)
+ - SEPA Identifier of the Creditor (AT-02)
+ - ISO 6346 (International standard for container identification)
+ - Codice Fiscale (Italian tax code for individuals)
+ - RTN (Routing transport number)
+* Add support for 2013 extension of Irish PPS Numbers
+* update getisbn script
+* update getmybp URLs for Malaysian code lists
+* various other minor improvements
+
+
changes from 0.8.1 to 0.9
-------------------------
diff --git a/README b/README
index b5b4023..1fd9612 100644
--- a/README
+++ b/README
@@ -15,6 +15,8 @@ Currently this package supports the following formats:
* PNF (ЛНЧ, Личен номер на чужденец, Bulgarian number of a foreigner)
* VAT (Идентификационен номер по ДДС, Bulgarian VAT number)
* CPF (Cadastro de Pessoas Físicas, Brazillian national identifier)
+ * Swiss social security number ("Sozialversicherungsnummer")
+ * RIC No. (Chinese Resident Identity Card Number)
* Αριθμός Εγγραφής Φ.Π.Α. (Cypriot VAT number)
* DIČ (Daňové identifikační číslo, Czech VAT number)
* RČ (Rodné číslo, the Czech birth number)
@@ -22,11 +24,14 @@ Currently this package supports the following formats:
* CPR (personnummer, the Danish citizen number)
* CVR (Momsregistreringsnummer, Danish VAT number)
* EAN (International Article Number)
+ * CI (Cédula de identidad, Ecuadorian personal identity code)
+ * RUC (Registro Único de Contribuyentes, Ecuadorian company tax 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)
* NIE (Número de Identificación de Extranjeros, Spanish foreigner number)
* NIF (Número de Identificación Fiscal, Spanish VAT number)
+ * SEPA Identifier of the Creditor (AT-02)
* VAT (European Union VAT number)
* ALV nro (Arvonlisäveronumero, Finnish VAT number)
* HETU (Henkilötunnus, Finnish personal identity code)
@@ -46,7 +51,9 @@ Currently this package supports the following formats:
* ISBN (International Standard Book Number)
* ISIL (International Standard Identifier for Libraries)
* 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)
* PVM (Pridėtinės vertės mokestis mokėtojo kodas, Lithuanian VAT number)
* TVA (taxe sur la valeur ajoutée, Luxembourgian VAT number)
@@ -71,6 +78,7 @@ Currently this package supports the following formats:
* 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)
@@ -115,7 +123,7 @@ also work with older versions of Python.
Copyright
---------
-Copyright (C) 2010, 2011, 2012, 2013 Arthur de Jong
+Copyright (C) 2010-2014 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 513de76..c7a7acc 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -91,6 +91,8 @@ Available formats
bg.pnf
bg.vat
br.cpf
+ ch.ssn
+ cn.ric
cy.vat
cz.dic
cz.rc
@@ -98,11 +100,14 @@ Available formats
dk.cpr
dk.cvr
ean
+ ec.ci
+ ec.ruc
ee.kmkr
es.cif
es.dni
es.nie
es.nif
+ eu.at_02
eu.vat
fi.alv
fi.hetu
@@ -122,7 +127,9 @@ Available formats
isbn
isil
ismn
+ iso6346
issn
+ it.codicefiscale
it.iva
lt.pvm
lu.tva
@@ -147,5 +154,6 @@ Available formats
us.ein
us.itin
us.ptin
+ us.rtn
us.ssn
us.tin
diff --git a/docs/stdnum.ch.ssn.rst b/docs/stdnum.ch.ssn.rst
new file mode 100644
index 0000000..53a1d78
--- /dev/null
+++ b/docs/stdnum.ch.ssn.rst
@@ -0,0 +1,5 @@
+stdnum.ch.ssn
+=============
+
+.. automodule:: stdnum.ch.ssn
+ :members:
diff --git a/docs/stdnum.cn.ric.rst b/docs/stdnum.cn.ric.rst
new file mode 100644
index 0000000..53fa6cc
--- /dev/null
+++ b/docs/stdnum.cn.ric.rst
@@ -0,0 +1,5 @@
+stdnum.cn.ric
+=============
+
+.. automodule:: stdnum.cn.ric
+ :members:
diff --git a/docs/stdnum.ec.ci.rst b/docs/stdnum.ec.ci.rst
new file mode 100644
index 0000000..d28b9d1
--- /dev/null
+++ b/docs/stdnum.ec.ci.rst
@@ -0,0 +1,5 @@
+stdnum.ec.ci
+============
+
+.. automodule:: stdnum.ec.ci
+ :members:
diff --git a/docs/stdnum.ec.ruc.rst b/docs/stdnum.ec.ruc.rst
new file mode 100644
index 0000000..8b9442c
--- /dev/null
+++ b/docs/stdnum.ec.ruc.rst
@@ -0,0 +1,5 @@
+stdnum.ec.ruc
+=============
+
+.. automodule:: stdnum.ec.ruc
+ :members:
diff --git a/docs/stdnum.eu.at_02.rst b/docs/stdnum.eu.at_02.rst
new file mode 100644
index 0000000..4368287
--- /dev/null
+++ b/docs/stdnum.eu.at_02.rst
@@ -0,0 +1,5 @@
+stdnum.eu.at_02
+===============
+
+.. automodule:: stdnum.eu.at_02
+ :members:
diff --git a/docs/stdnum.iso6346.rst b/docs/stdnum.iso6346.rst
new file mode 100644
index 0000000..56c58e0
--- /dev/null
+++ b/docs/stdnum.iso6346.rst
@@ -0,0 +1,5 @@
+stdnum.iso6346
+==============
+
+.. automodule:: stdnum.iso6346
+ :members:
diff --git a/docs/stdnum.it.codicefiscale.rst b/docs/stdnum.it.codicefiscale.rst
new file mode 100644
index 0000000..85d22c6
--- /dev/null
+++ b/docs/stdnum.it.codicefiscale.rst
@@ -0,0 +1,5 @@
+stdnum.it.codicefiscale
+=======================
+
+.. automodule:: stdnum.it.codicefiscale
+ :members:
diff --git a/docs/stdnum.us.rtn.rst b/docs/stdnum.us.rtn.rst
new file mode 100644
index 0000000..b6cfe85
--- /dev/null
+++ b/docs/stdnum.us.rtn.rst
@@ -0,0 +1,5 @@
+stdnum.us.rtn
+=============
+
+.. automodule:: stdnum.us.rtn
+ :members:
diff --git a/getnumlist.py b/getnumlist.py
index 97c91bc..0a3eb1f 100755
--- a/getnumlist.py
+++ b/getnumlist.py
@@ -56,8 +56,3 @@ if __name__ == '__main__':
print ''
for module in get_number_modules():
print ' %s' % module.__name__.replace('stdnum.', '')
- print ''
- print 'For index.xml:'
- print ''
- for module in get_number_modules():
- print ' <li>%s</li>' % util.get_module_name(module)
diff --git a/setup.py b/setup.py
index afb9889..008ef46 100755
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@
# setup.py - python-stdnum installation script
#
-# Copyright (C) 2010, 2011, 2012, 2013 Arthur de Jong
+# Copyright (C) 2010-2014 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
@@ -41,10 +41,12 @@ setup(name='python-stdnum',
url='http://arthurdejong.org/python-stdnum/',
license='LGPL',
classifiers=[
- 'Development Status :: 4 - Beta',
+ 'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
- 'Intended Audience :: System Administrators',
- 'License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)',
+ 'Intended Audience :: Financial and Insurance Industry',
+ 'Intended Audience :: Information Technology',
+ 'Intended Audience :: Telecommunications Industry',
+ 'License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
diff --git a/stdnum/__init__.py b/stdnum/__init__.py
index 815f6bd..9705c24 100644
--- a/stdnum/__init__.py
+++ b/stdnum/__init__.py
@@ -1,7 +1,7 @@
# __init__.py - main module
# coding: utf-8
#
-# Copyright (C) 2010, 2011, 2012, 2013 Arthur de Jong
+# Copyright (C) 2010-2014 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
@@ -31,6 +31,8 @@ Currently this package supports the following formats:
* bg.pnf: PNF (ЛНЧ, Личен номер на чужденец, Bulgarian number of a foreigner)
* bg.vat: VAT (Идентификационен номер по ДДС, Bulgarian VAT number)
* br.cpf: CPF (Cadastro de Pessoas Físicas, Brazillian national identifier)
+* ch.ssn: Swiss social security number ("Sozialversicherungsnummer")
+* cn.ric: RIC No. (Chinese Resident Identity Card 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)
@@ -38,11 +40,14 @@ Currently this package supports the following formats:
* dk.cpr: CPR (personnummer, the Danish citizen number)
* dk.cvr: CVR (Momsregistreringsnummer, Danish VAT 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.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)
* 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)
+* 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.hetu: HETU (Henkilötunnus, Finnish personal identity code)
@@ -62,7 +67,9 @@ Currently this package supports the following formats:
* isbn: ISBN (International Standard Book Number)
* isil: ISIL (International Standard Identifier for Libraries)
* ismn: ISMN (International Standard Music Number)
+* iso6346: ISO 6346 (International standard for container identification)
* issn: ISSN (International Standard Serial Number)
+* it.codicefiscale: Codice Fiscale (Italian tax code for individuals)
* it.iva: Partita IVA (Italian VAT number)
* 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)
@@ -87,6 +94,7 @@ Currently this package supports the following formats:
* 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)
@@ -116,4 +124,4 @@ parsing, validation, formatting or conversion functions.
# the version number of the library
-__version__ = '0.9'
+__version__ = '1.0'