Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/stdnum/iban.py
Commit message (Collapse)AuthorAgeFilesLines
* Minor code improvements (mostly PEP8)Arthur de Jong2017-09-111-1/+1
|
* Docstring improvementsArthur de Jong2017-09-111-3/+3
|
* Ensure 100% branch coverageArthur de Jong2017-08-281-3/+0
| | | | | | | | | | | This ensures that the tests fail if 100% branch coverage is not achieved. It also adds some pragma statements for code that cannot be covered or is Python version dependent. Furthermore, the get_module_list() function was removed from stdnum.util and more tests were made from stdnum.util and stdnum.numdb. The functionality to call format() in a country-specific IBAN implementation was also dropped because it was not used.
* Integrate base10 conversion into Mod 97, 10Arthur de Jong2017-04-101-21/+4
| | | | | | This moves the conversion of an alphanumeric string to a numeric representation for modulo 97 calculation to the mod_97_10 module because this mechanism seems to be used by multiple formats.
* Validate country-specific part of IBANArthur de Jong2016-09-101-6/+27
| | | | | | This adds the possible of validating the country-specific part of the IBAN. If the country has an IBAN module, checking is also delegated to that module.
* Implement calc_check_digits() in IBANArthur de Jong2016-09-101-7/+18
| | | | | | Introduce a function to calculate the two check digits of an IBAN. Since the check digits are the third and fourth characters in the number, placeholders need to be provided when calling this function.
* Make more information links consistentArthur de Jong2016-04-111-2/+3
| | | | | Also fix a docstring in stdnum.nl.bsn and add a pointer to stdnum.nl.onderwijsnummer.
* Integrate information from the wikiArthur de Jong2015-10-301-1/+5
| | | | | | | This adds the information that was previously in the Trac wiki into the source docstrings because the Trac instance is being phased out. This also includes small updates to the ISIL module.
* Code style improvementsArthur de Jong2015-10-111-1/+1
| | | | | | | 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.
* Fix common spelling mistakeArthur de Jong2014-11-011-2/+2
|
* Only catch ExceptionArthur de Jong2014-10-181-1/+1
|
* Implement validate() for IBANArthur de Jong2013-06-081-28/+38
|
* some more documentation improvementsArthur de Jong2012-02-261-1/+7
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@168 9dea7c4f-944c-4273-ac1a-574ede026edc
* ensure that the module docstrings are in a somewhat more ↵Arthur de Jong2012-02-261-2/+2
| | | | | | usable format git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@165 9dea7c4f-944c-4273-ac1a-574ede026edc
* add "pragma: no cover" statements to code that isn't ↵Arthur de Jong2012-02-191-1/+1
| | | | | | expected to be covered git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@156 9dea7c4f-944c-4273-ac1a-574ede026edc
* implement a stdnum.util module for holding utility ↵Arthur de Jong2012-02-041-3/+5
| | | | | | functions (for now clean()) git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@100 9dea7c4f-944c-4273-ac1a-574ede026edc
* make source code layout follow PEP8 moreArthur de Jong2011-08-191-6/+12
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@76 9dea7c4f-944c-4273-ac1a-574ede026edc
* move more validation into try/except (specifically the ↵Arthur de Jong2011-02-051-3/+3
| | | | | | _convert() call) git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@59 9dea7c4f-944c-4273-ac1a-574ede026edc
* add an IBAN (International Bank Account Number) moduleArthur de Jong2011-01-161-0/+91
git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@51 9dea7c4f-944c-4273-ac1a-574ede026edc