Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2015-10-11 13:39:10 +0200
committerArthur de Jong <arthur@arthurdejong.org>2015-10-11 13:39:10 +0200
commit13618173f72ed2c014869ad9a4366b26f1d1e5d3 (patch)
tree9cb042b58e0e7ef30b5bf8ffe5f67c9d7c8018bc
parent13270457bd53c93ce5c085fdd7d7e343a089a97d (diff)
Get files ready for 1.2 release1.2
-rw-r--r--ChangeLog306
-rw-r--r--MANIFEST.in2
-rw-r--r--NEWS26
-rw-r--r--README20
-rw-r--r--docs/index.rst16
-rw-r--r--docs/stdnum.at.businessid.rst5
-rw-r--r--docs/stdnum.br.cnpj.rst5
-rw-r--r--docs/stdnum.ch.uid.rst5
-rw-r--r--docs/stdnum.ch.vat.rst5
-rw-r--r--docs/stdnum.cusip.rst5
-rw-r--r--docs/stdnum.de.wkn.rst5
-rw-r--r--docs/stdnum.ee.ik.rst5
-rw-r--r--docs/stdnum.fi.associationid.rst5
-rw-r--r--docs/stdnum.fi.ytunnus.rst5
-rw-r--r--docs/stdnum.gb.sedol.rst5
-rw-r--r--docs/stdnum.imo.rst5
-rw-r--r--docs/stdnum.isin.rst5
-rw-r--r--docs/stdnum.mx.rfc.rst5
-rw-r--r--docs/stdnum.pl.pesel.rst5
-rw-r--r--docs/stdnum.pl.regon.rst5
-rw-r--r--docs/stdnum.ru.inn.rst5
-rwxr-xr-xsetup.py8
-rw-r--r--stdnum/__init__.py18
23 files changed, 472 insertions, 4 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@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@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@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@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@arthurdejong.org>
+
+ * [961815f] stdnum/gb/sedol.py, tests/test_gb_sedol.doctest:
+ Add SEDOL number
+
+2015-10-10 Arthur de Jong <arthur@arthurdejong.org>
+
+ * [fb91775] stdnum/ru/__init__.py: Add information to Russian package
+
+2015-10-10 Arthur de Jong <arthur@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@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@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@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@arthurdejong.org>
+
+ * [522611c] stdnum/cusip.py, tests/test_cusip.doctest: Add CUSIP
+ number
+
+2015-10-08 Arthur de Jong <arthur@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@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@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@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@arthurdejong.org>
+
+ * [d413f95] stdnum/isbn.py: Fix comment
+
+2015-10-02 Arthur de Jong <arthur@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@holvi.com>
+
+ * [222a87e] stdnum/fi/__init__.py: Add alias to hetu in for finnish
+ personal id code
+
+2015-09-27 Arthur de Jong <arthur@arthurdejong.org>
+
+ * [e045c71] tests/test_eu_vat.doctest: Add more numbers found online
+
+2015-09-07 Dariusz Choruzy <darobial@gmail.com>
+
+ * [36217ac] stdnum/pl/regon.py, tests/test_pl_regon.doctest:
+ Add Polish REGON number
+
+2015-09-06 Dariusz Choruzy <darobial@gmail.com>
+
+ * [a0cb61f] stdnum/pl/pesel.py: Add Polish PESEL number
+
+2015-08-16 Arthur de Jong <arthur@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@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@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@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@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@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@gmail.com>
+
+ * [243e50f] stdnum/ee/ik.py, tests/test_ee_ik.doctest: Add validation
+ of Estonian personal ID
+
+2015-06-12 Lari Haataja <lari@holvi.com>
+
+ * [7f9c94f] stdnum/at/businessid.py: Add company register number
+ validation for Austria
+
+2015-07-12 Arthur de Jong <arthur@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@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@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@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@holvi.com>
+
+ * [8d30992] stdnum/fi/associationid.py: Validation for Finnish
+ association identifier
+
+2015-07-12 Arthur de Jong <arthur@arthurdejong.org>
+
+ * [e107457] : Merge changes to use CN Open Data
+
+2015-07-12 Arthur de Jong <arthur@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@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@gmail.com>
+
+ * [6308261] stdnum/cn/loc.dat: Download and generate latest Chinese
+ location data.
+
+2015-06-08 Jiangge Zhang <tonyseek@gmail.com>
+
+ * [12ba352] getcnloc.py: Download GB2260 data from github.com/cn.
+
+2015-04-27 Arthur de Jong <arthur@arthurdejong.org>
+
+ * [8925ae2] tests/test_iso6346.doctest: Fix copyright header
+
+2015-04-27 Arthur de Jong <arthur@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@arthurdejong.org>
* [583b066] getcnloc.py, stdnum/cn/loc.dat, stdnum/iban.dat,
diff --git a/MANIFEST.in b/MANIFEST.in
index 320edf1..bc3f093 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -1,3 +1,3 @@
include README NEWS ChangeLog COPYING *.py
-recursive-include tests *.doctest
+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/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/setup.py b/setup.py
index 399893b..2562691 100755
--- a/setup.py
+++ b/setup.py
@@ -49,6 +49,13 @@ setup(name='python-stdnum',
'License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)',
'Operating System :: OS Independent',
'Programming Language :: Python',
+ 'Programming Language :: Python :: 2',
+ 'Programming Language :: Python :: 2.6',
+ 'Programming Language :: Python :: 2.7',
+ 'Programming Language :: Python :: 3',
+ 'Programming Language :: Python :: 3.4',
+ 'Programming Language :: Python :: 3.5',
+ 'Topic :: Office/Business :: Financial',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Text Processing :: General',
],
@@ -56,5 +63,6 @@ setup(name='python-stdnum',
package_data={'': ['*.dat']},
extras_require={
'VIES': ['suds'],
+ 'VIES-ALT': ['PySimpleSOAP'],
},
)
diff --git a/stdnum/__init__.py b/stdnum/__init__.py
index 1e32343..78c033d 100644
--- a/stdnum/__init__.py
+++ b/stdnum/__init__.py
@@ -27,20 +27,26 @@ Currently this package supports the following formats:
* 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)
@@ -48,6 +54,7 @@ Currently this package supports the following formats:
* 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)
@@ -56,9 +63,12 @@ Currently this package supports the following formats:
* 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)
@@ -68,12 +78,14 @@ Currently this package supports the following formats:
* 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)
@@ -85,6 +97,7 @@ Currently this package supports the following formats:
* 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)
@@ -94,9 +107,12 @@ Currently this package supports the following formats:
* 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)
@@ -137,4 +153,4 @@ parsing, validation, formatting or conversion functions.
# the version number of the library
-__version__ = '1.1'
+__version__ = '1.2'