diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2014-02-02 21:22:10 +0100 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2014-02-02 21:42:24 +0100 |
commit | 1ac00a0b51204b953fa1f1bb0b87aee16d078dbc (patch) | |
tree | 0ee5e5aa367760dbac89cf5e62086a4d8247a53e /stdnum/us/ptin.py | |
parent | c3d669ca074557bcf57a4742b83d178364b08465 (diff) |
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.
Diffstat (limited to 'stdnum/us/ptin.py')
0 files changed, 0 insertions, 0 deletions