Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * Implement validate() for ISBNArthur de Jong2013-06-082-31/+61
| |
| * Implement validate() for EANArthur de Jong2013-06-082-10/+65
| |
| * Raise a proper exception if cleaning failsArthur de Jong2013-06-081-1/+6
| |
| * Provide a module with validation exceptionsArthur de Jong2013-06-082-0/+67
|/ | | | | | | | | | This introduces a new module for switching the validation scheme. Instead of using the is_valid() function that returns a boolean a validate() function either returns the sanitised number or raises an exception that should indicate the kind of validation failure. This should make it easier for applications calling this library to present more informative messages to the user.
* Revert generating stdnum docstring dynamicallyArthur de Jong2013-06-074-11/+71
| | | | | | | | | | | | | Generating the docstring dynamically results in all stdnum modules being imported for every import from any stdnum module which is a performance hit. So we switch back to a manually generated list, using: from stdnum.util import get_module_list print '\n'.join(get_module_list()) This also shortens a few short descriptions to attempt to fit things on one line.
* Documentation consistency improvementsArthur de Jong2013-06-072-8/+16
|
* The robustness test were moved to the general testsArthur de Jong2013-06-071-16/+0
|
* Remove empty lineArthur de Jong2013-06-071-1/+0
|
* GRid's format() function shouldn't have add_check_digit ↵Arthur de Jong2013-06-071-2/+2
| | | | parameter
* Use a cleaner way to get all stdnum modulesArthur de Jong2013-04-261-3/+6
| | | | This mechanism should work from Python 2.6 up to and including Python 3.3.
* Fix doctest to not be dependant on dict orderingArthur de Jong2013-04-261-15/+42
|
* Add a .gitignore fileArthur de Jong2013-04-261-0/+11
|
* generate part of the stdnum docstring based on ↵Arthur de Jong2012-09-222-64/+33
| | | | | | introspection of the modules git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@176 9dea7c4f-944c-4273-ac1a-574ede026edc
* set svn:ignore properlyArthur de Jong2012-06-160-0/+0
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@175 9dea7c4f-944c-4273-ac1a-574ede026edc
* re-add Python3 supportArthur de Jong2012-02-2611-14/+35
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@174 9dea7c4f-944c-4273-ac1a-574ede026edc
* get files ready for 0.7 release0.7Arthur de Jong2012-02-263-1/+603
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@172 9dea7c4f-944c-4273-ac1a-574ede026edc
* update data filesArthur de Jong2012-02-264-113/+122
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@171 9dea7c4f-944c-4273-ac1a-574ede026edc
* also generate a list of modules for use in the Spinx ↵Arthur de Jong2012-02-261-4/+14
| | | | | | documentation git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@170 9dea7c4f-944c-4273-ac1a-574ede026edc
* use a script to generate the list of number formats in ↵Arthur de Jong2012-02-263-124/+157
| | | | | | stdnum git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@169 9dea7c4f-944c-4273-ac1a-574ede026edc
* some more documentation improvementsArthur de Jong2012-02-2621-62/+59
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@168 9dea7c4f-944c-4273-ac1a-574ede026edc
* make script executableArthur de Jong2012-02-261-0/+0
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@167 9dea7c4f-944c-4273-ac1a-574ede026edc
* add a to_vta() function to the stdnum.fr.siren moduleArthur de Jong2012-02-261-0/+19
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@166 9dea7c4f-944c-4273-ac1a-574ede026edc
* ensure that the module docstrings are in a somewhat more ↵Arthur de Jong2012-02-2667-203/+278
| | | | | | usable format git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@165 9dea7c4f-944c-4273-ac1a-574ede026edc
* add the optional dependency on suds for the ↵Arthur de Jong2012-02-251-0/+4
| | | | | | stdnum.eu.vat.check_vies() function git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@164 9dea7c4f-944c-4273-ac1a-574ede026edc
* make the get_birth_date() function publically availableArthur de Jong2012-02-241-2/+2
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@163 9dea7c4f-944c-4273-ac1a-574ede026edc
* generate documentation using SphinxArthur de Jong2012-02-2463-0/+647
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@162 9dea7c4f-944c-4273-ac1a-574ede026edc
* add a CPR (personnummer, the Danish citizen number) moduleArthur de Jong2012-02-233-0/+101
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@161 9dea7c4f-944c-4273-ac1a-574ede026edc
* add a PPS No (Personal Public Service Number, Irish ↵Arthur de Jong2012-02-233-0/+62
| | | | | | personal number) module git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@160 9dea7c4f-944c-4273-ac1a-574ede026edc
* add an OIB (Osobni identifikacijski broj, Croatian ↵Arthur de Jong2012-02-224-0/+80
| | | | | | personal identification number) module git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@159 9dea7c4f-944c-4273-ac1a-574ede026edc
* rename numdb test fileArthur de Jong2012-02-202-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@158 9dea7c4f-944c-4273-ac1a-574ede026edc
* add a stdnum.eu.vat.check_vies() function to do an ↵Arthur de Jong2012-02-201-0/+21
| | | | | | on-line check of the VAT number git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@157 9dea7c4f-944c-4273-ac1a-574ede026edc
* add "pragma: no cover" statements to code that isn't ↵Arthur de Jong2012-02-192-2/+2
| | | | | | expected to be covered git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@156 9dea7c4f-944c-4273-ac1a-574ede026edc
* add a VAT (European Union VAT number) moduleArthur de Jong2012-02-195-0/+764
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@155 9dea7c4f-944c-4273-ac1a-574ede026edc
* make number description consistentArthur de Jong2012-02-192-4/+4
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@154 9dea7c4f-944c-4273-ac1a-574ede026edc
* for all countries, provide vat as an alias for the local ↵Arthur de Jong2012-02-1918-0/+54
| | | | | | vat identifier git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@153 9dea7c4f-944c-4273-ac1a-574ede026edc
* give all packages a descriptionArthur de Jong2012-02-1929-0/+609
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@152 9dea7c4f-944c-4273-ac1a-574ede026edc
* remove stdnum.nl.vat alias moduleArthur de Jong2012-02-191-22/+0
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@151 9dea7c4f-944c-4273-ac1a-574ede026edc
* use introspection to find number modules and test themArthur de Jong2012-02-192-39/+20
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@150 9dea7c4f-944c-4273-ac1a-574ede026edc
* add a VAT (Идентификационен номер ↵Arthur de Jong2012-02-185-1/+131
| | | | | | по ДДС, Bulgarian VAT numbers) module git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@149 9dea7c4f-944c-4273-ac1a-574ede026edc
* add a PNF (ЛНЧ, Личен номер на ↵Arthur de Jong2012-02-184-1/+62
| | | | | | чужденец, Bulgarian personal number of a foreigner) module git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@148 9dea7c4f-944c-4273-ac1a-574ede026edc
* add an EGN (ЕГН, Единен граждански ↵Arthur de Jong2012-02-185-0/+92
| | | | | | номер, Bulgarian personal identity codes) module git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@147 9dea7c4f-944c-4273-ac1a-574ede026edc
* explicitly test for FalseArthur de Jong2012-02-181-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@146 9dea7c4f-944c-4273-ac1a-574ede026edc
* explicitly return False if no rule matchesArthur de Jong2012-02-181-0/+1
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@145 9dea7c4f-944c-4273-ac1a-574ede026edc
* add a VAT (United Kingdom (and Isle of Man) VAT ↵Arthur de Jong2012-02-186-0/+145
| | | | | | registration number) module git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@144 9dea7c4f-944c-4273-ac1a-574ede026edc
* fix typoArthur de Jong2012-02-181-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@143 9dea7c4f-944c-4273-ac1a-574ede026edc
* add a VAT (Moms, Mervärdesskatt, Swedish VAT number) moduleArthur de Jong2012-02-185-0/+58
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@142 9dea7c4f-944c-4273-ac1a-574ede026edc
* add a ID za DDV (Davčna številka, Slovenian VAT ↵Arthur de Jong2012-02-185-0/+67
| | | | | | number) module git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@141 9dea7c4f-944c-4273-ac1a-574ede026edc
* add a NIP (Numer Identyfikacji Podatkowej, Polish VAT ↵Arthur de Jong2012-02-185-0/+70
| | | | | | number) module git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@140 9dea7c4f-944c-4273-ac1a-574ede026edc
* add a VAT (Maltese VAT number) moduleArthur de Jong2012-02-185-0/+62
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@139 9dea7c4f-944c-4273-ac1a-574ede026edc
* strip a few more separatorsArthur de Jong2012-02-171-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@138 9dea7c4f-944c-4273-ac1a-574ede026edc