Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2013-12-31 13:46:53 +0100
committerArthur de Jong <arthur@arthurdejong.org>2013-12-31 13:46:53 +0100
commitd933aab82678efab4814f15b46361f7edf079382 (patch)
treea9a70e85c567d146158f2b68ffe94390c95e9fd7
parent5c1765e7a04383c88c9836e584873addad8e4b24 (diff)
Get files ready for 0.9 release0.9
-rw-r--r--.gitignore1
-rw-r--r--ChangeLog163
-rw-r--r--NEWS19
-rw-r--r--README9
-rw-r--r--docs/index.rst7
-rw-r--r--docs/stdnum.my.nric.rst5
-rw-r--r--docs/stdnum.nl.brin.rst5
-rw-r--r--docs/stdnum.nl.postcode.rst5
-rw-r--r--docs/stdnum.us.atin.rst5
-rw-r--r--docs/stdnum.us.ein.rst5
-rw-r--r--docs/stdnum.us.itin.rst5
-rw-r--r--docs/stdnum.us.ptin.rst5
-rw-r--r--docs/stdnum.us.tin.rst5
-rwxr-xr-xgetiban.py2
-rwxr-xr-xgetimsi.py2
-rw-r--r--stdnum/__init__.py11
16 files changed, 249 insertions, 5 deletions
diff --git a/.gitignore b/.gitignore
index 0df1d5c..2ffac4e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,3 +9,4 @@ __pycache__
/python_stdnum.egg-info
/.coverage
/coverage
+/distribute-*.egg
diff --git a/ChangeLog b/ChangeLog
index e660a62..1d546ef 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,166 @@
+2013-12-31 Arthur de Jong <arthur@arthurdejong.org>
+
+ * [5c1765e] stdnum/iban.dat, stdnum/isbn.dat: Update database files
+
+2013-12-31 Arthur de Jong <arthur@arthurdejong.org>
+
+ * [4217c35] stdnum/isan.py, stdnum/meid.py, stdnum/util.py: Add
+ pragma: no cover for Python 3
+
+ Some statements are not covered in Python 3 tests.
+
+2013-12-31 Arthur de Jong <arthur@arthurdejong.org>
+
+ * [6c49ca8] getiban.py: Update getiban script
+
+ This switches to use the csv module to support multi-line column
+ values. This also handles some problems in the BBAN structure
+ column that would contain an IBAN structure.
+
+2013-12-31 Arthur de Jong <arthur@arthurdejong.org>
+
+ * [0ee74e5] ChangeLog: Generate Changelog with different formatter
+
+ git log --date=short --name-only \ --format="%x0c%ad %aN
+ <%aE>%n%n%x09* [%h]%x00%s%n%x00%+b%x00" | \
+ awk 'BEGIN { RS="\f"; FS="\0" } { if ($1) { gsub(/\n*$/,
+ "", $4); gsub(/^\n*/, "", $4); gsub(/\n/, ", ", $4);
+ gsub(/\ngit-svn-id.*/, "", $3); gsub(/\n/, "\n\t ", $3); print
+ $1 " " $4 ": "; print "\t " $2 $3 }}' | \ fmt --width=78 -c
+ > ChangeLog
+
+2013-12-30 Cédric Krier <ced@b2ck.com>
+
+ * [a148835] stdnum/gb/vat.py, tests/test_gb_vat.doctest: Add some
+ new VAT numbers for GB
+
+ Add support for restarting from November 2009 using 9755.
+ Add support for EU format of health authorities
+
+ See: https://github.com/arthurdejong/python-stdnum/pull/4
+
+2013-12-12 eneq123 <koc@loki.glas.net>
+
+ * [4609a22] getimsi.py, stdnum/imsi.dat: Update parsing in getimsi
+ script
+
+ This updates the regexes and includes seom optimizations.
+
+ See: https://github.com/arthurdejong/python-stdnum/issues/1
+
+2013-12-30 Cédric Krier <ced@b2ck.com>
+
+ * [9ec3cb0] stdnum/eu/vat.py: Add support for proxy
+
+2013-12-04 Arthur de Jong <arthur@arthurdejong.org>
+
+ * [7f30979] getimsi.py, stdnum/imsi.dat: Update getimsi script
+
+ This updates the script due to the Wikipedia article change and
+ removes the code for getting the data from ITU for now.
+
+ See: https://github.com/arthurdejong/python-stdnum/issues/1
+
+2013-11-09 Arthur de Jong <arthur@arthurdejong.org>
+
+ * [b0c47d5] stdnum/nl/__init__.py, stdnum/nl/postcode.py: Add a
+ Dutch postal code module
+
+ The Dutch postal code (postcode) consists of four digits followed
+ by two characters and together with the house number should
+ uniquely identify any address.
+
+ Addresses trac ticket #7.
+
+2013-11-09 Arthur de Jong <arthur@arthurdejong.org>
+
+ * [73d05b0] stdnum/nl/brin.py: Add a Dutch Brin number module
+
+ The Brin (Basis Registratie Instellingen) is a number to identify
+ schools and related institutions.
+
+ Addresses trac ticket #6.
+
+2013-11-09 Arthur de Jong <arthur@arthurdejong.org>
+
+ * [73330a1] stdnum/nl/onderwijsnummer.py: Clarify onderwijsnummer
+ description
+
+2013-11-09 Arthur de Jong <arthur@arthurdejong.org>
+
+ * [188d3ea] : Add various United States Tax number modules
+
+ This adds modules for the Individual Taxpayer Identification Number
+ (ITIN), the Employer Identification Number (EIN), Adoption Taxpayer
+ Identification Number (ATIN) and Preparer Tax Identification
+ Number (PTIN) that together with the Social Security Number
+ (SSN) are valid Taxpayer Identification Numbers (TIN)
+
+2013-10-12 Arthur de Jong <arthur@arthurdejong.org>
+
+ * [9530635] stdnum/us/tin.py: Add a United States TIN module
+
+ The Taxpayer Identification Number is used used for tax purposes
+ in the United States. This module uses the SSN, ITIN, EIN,
+ PTIN and ATIN modules to determine validitiy of the TIN.
+
+2013-10-11 Arthur de Jong <arthur@arthurdejong.org>
+
+ * [316e3f2] stdnum/us/ptin.py: Add a United States PTIN module
+
+ A Preparer Tax Identification Number (PTIN) is United States
+ identification number for tax return preparers. It is an
+ eight-digit number prefixed with a capital P.
+
+2013-10-11 Arthur de Jong <arthur@arthurdejong.org>
+
+ * [47ea6ea] stdnum/us/atin.py: Add a United States ATIN module
+
+ An Adoption Taxpayer Identification Number (ATIN) is a temporary
+ nine-digit number issued by the United States IRS for a child for
+ whom the adopting parents cannot obtain a Social Security Number.
+
+2013-10-11 Arthur de Jong <arthur@arthurdejong.org>
+
+ * [b1c9ba5] stdnum/us/ein.dat, stdnum/us/ein.py: Add a United
+ States EIN module
+
+ The Employer Identification Number (EIN), also known as Federal
+ Employer Identification Number (FEIN), is used to identify a
+ business entity in the United States. It is issued to anyone
+ that has to pay withholding taxes on employees.
+
+2013-10-11 Arthur de Jong <arthur@arthurdejong.org>
+
+ * [19039f7] stdnum/us/itin.py: Add a United States ITIN module
+
+ The ITIN (Individual Taxpayer Identification Number) is issued
+ by the United States IRS to individuals who are required to
+ have a taxpayer identification number but who are not eligible
+ to obtain a Social Security Number.
+
+2013-10-11 Arthur de Jong <arthur@arthurdejong.org>
+
+ * [70b974b] stdnum/meid.py: Remove unused import
+
+2013-11-08 Arthur de Jong <arthur@arthurdejong.org>
+
+ * [f122c88] stdnum/util.py: Try to replace Unicode characters
+ with ASCII
+
+ This changes the stdnum.util.clean() method that is used by all
+ modules to replace alternative Unicode dashes, dots, etc. by
+ their ASCII equivalent so the numbers will be automatically
+ converted and validated.
+
+ Inspiration for this change came from
+ https://github.com/JNRowe/pyisbn/pull/6
+
+2013-06-14 Arthur de Jong <arthur@arthurdejong.org>
+
+ * [c042f02] ChangeLog, NEWS, stdnum/__init__.py: Get files ready
+ for 0.8.1 release
+
2013-06-14 Arthur de Jong <arthur@arthurdejong.org>
* [31e5e81] MANIFEST.in, setup.py: Ensure that all used files are
diff --git a/NEWS b/NEWS
index 3810b0c..47a403b 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,22 @@
+changes from 0.8.1 to 0.9
+-------------------------
+
+* add modules for the following number formats:
+ - Brin number (Dutch number for schools)
+ - Postcode (Dutch postal code)
+ - 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)
+ - TIN (U.S. Taxpayer Identification Number)
+* try to replace Unicode characters with similar-looking ASCII characters
+* update getimsi script (thanks eneq123)
+* update getiban script
+* add proxy support to the stdnum.eu.vat.check_vies() function (thanks
+ Cédric Krier)
+* support newer United Kingdom VAT numbers
+
+
changes from 0.8 to 0.8.1
-------------------------
diff --git a/README b/README
index 7c47020..b5b4023 100644
--- a/README
+++ b/README
@@ -54,9 +54,11 @@ Currently this package supports the following formats:
* MEID (Mobile Equipment Identifier)
* VAT (Maltese VAT 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 school number)
+ * Onderwijsnummer (Dutch student school number)
+ * Postcode (Dutch postal code)
* NIP (Numer Identyfikacji Podatkowej, Polish VAT number)
* NIF (Número de identificação fiscal, Portuguese VAT number)
* CF (Cod de înregistrare în scopuri de TVA, Romanian VAT number)
@@ -65,7 +67,12 @@ Currently this package supports the following formats:
* 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)
+ * 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)
* SSN (U.S. Social Security Number)
+ * TIN (U.S. Taxpayer Identification Number)
Furthermore a number of generic check digit algorithms are available:
diff --git a/docs/index.rst b/docs/index.rst
index b5ceb92..513de76 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -130,9 +130,11 @@ Available formats
meid
mt.vat
my.nric
+ nl.brin
nl.bsn
nl.btw
nl.onderwijsnummer
+ nl.postcode
pl.nip
pt.nif
ro.cf
@@ -141,4 +143,9 @@ Available formats
si.ddv
sk.dph
sk.rc
+ us.atin
+ us.ein
+ us.itin
+ us.ptin
us.ssn
+ us.tin
diff --git a/docs/stdnum.my.nric.rst b/docs/stdnum.my.nric.rst
new file mode 100644
index 0000000..9f51a8a
--- /dev/null
+++ b/docs/stdnum.my.nric.rst
@@ -0,0 +1,5 @@
+stdnum.my.nric
+==============
+
+.. automodule:: stdnum.my.nric
+ :members:
diff --git a/docs/stdnum.nl.brin.rst b/docs/stdnum.nl.brin.rst
new file mode 100644
index 0000000..161e0a0
--- /dev/null
+++ b/docs/stdnum.nl.brin.rst
@@ -0,0 +1,5 @@
+stdnum.nl.brin
+==============
+
+.. automodule:: stdnum.nl.brin
+ :members:
diff --git a/docs/stdnum.nl.postcode.rst b/docs/stdnum.nl.postcode.rst
new file mode 100644
index 0000000..583162f
--- /dev/null
+++ b/docs/stdnum.nl.postcode.rst
@@ -0,0 +1,5 @@
+stdnum.nl.postcode
+==================
+
+.. automodule:: stdnum.nl.postcode
+ :members:
diff --git a/docs/stdnum.us.atin.rst b/docs/stdnum.us.atin.rst
new file mode 100644
index 0000000..62d090f
--- /dev/null
+++ b/docs/stdnum.us.atin.rst
@@ -0,0 +1,5 @@
+stdnum.us.atin
+==============
+
+.. automodule:: stdnum.us.atin
+ :members:
diff --git a/docs/stdnum.us.ein.rst b/docs/stdnum.us.ein.rst
new file mode 100644
index 0000000..6e2dd9a
--- /dev/null
+++ b/docs/stdnum.us.ein.rst
@@ -0,0 +1,5 @@
+stdnum.us.ein
+=============
+
+.. automodule:: stdnum.us.ein
+ :members:
diff --git a/docs/stdnum.us.itin.rst b/docs/stdnum.us.itin.rst
new file mode 100644
index 0000000..2528a13
--- /dev/null
+++ b/docs/stdnum.us.itin.rst
@@ -0,0 +1,5 @@
+stdnum.us.itin
+==============
+
+.. automodule:: stdnum.us.itin
+ :members:
diff --git a/docs/stdnum.us.ptin.rst b/docs/stdnum.us.ptin.rst
new file mode 100644
index 0000000..efa229e
--- /dev/null
+++ b/docs/stdnum.us.ptin.rst
@@ -0,0 +1,5 @@
+stdnum.us.ptin
+==============
+
+.. automodule:: stdnum.us.ptin
+ :members:
diff --git a/docs/stdnum.us.tin.rst b/docs/stdnum.us.tin.rst
new file mode 100644
index 0000000..3c51e1b
--- /dev/null
+++ b/docs/stdnum.us.tin.rst
@@ -0,0 +1,5 @@
+stdnum.us.tin
+=============
+
+.. automodule:: stdnum.us.tin
+ :members:
diff --git a/getiban.py b/getiban.py
index 44573b5..2b9bf98 100755
--- a/getiban.py
+++ b/getiban.py
@@ -2,7 +2,7 @@
# getiban.py - script to donwload and parse data from the IBAN registry
#
-# Copyright (C) 2011 Arthur de Jong
+# Copyright (C) 2011, 2013 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
diff --git a/getimsi.py b/getimsi.py
index 97a84b7..9c52931 100755
--- a/getimsi.py
+++ b/getimsi.py
@@ -2,7 +2,7 @@
# getismsi.py - script to donwload data from Wikipedia to build the database
#
-# Copyright (C) 2011 Arthur de Jong
+# Copyright (C) 2011, 2013 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
diff --git a/stdnum/__init__.py b/stdnum/__init__.py
index 4742be3..b11e4fc 100644
--- a/stdnum/__init__.py
+++ b/stdnum/__init__.py
@@ -70,9 +70,11 @@ Currently this package supports the following formats:
* meid: MEID (Mobile Equipment Identifier)
* mt.vat: VAT (Maltese VAT 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 school number)
+ * nl.onderwijsnummer: Onderwijsnummer (Dutch student school number)
+ * nl.postcode: Postcode (Dutch postal code)
* pl.nip: NIP (Numer Identyfikacji Podatkowej, Polish VAT number)
* 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)
@@ -81,7 +83,12 @@ Currently this package supports the following formats:
* 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)
+ * 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.ssn: SSN (U.S. Social Security Number)
+ * us.tin: TIN (U.S. Taxpayer Identification Number)
Furthermore a number of generic check digit algorithms are available:
@@ -96,4 +103,4 @@ Furthermore a number of generic check digit algorithms are available:
# the version number of the library
-__version__ = '0.8.1'
+__version__ = '0.9'