/usr/share/doc/python3-codicefiscale/README.rst is in python3-codicefiscale 0.9+ds0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 | Python library for Italian fiscal code
.. image:: https://secure.travis-ci.org/ema/pycodicefiscale.png?branch=master
:target: http://travis-ci.org/ema/pycodicefiscale
codicefiscale is a Python library for working with Italian fiscal code numbers
officially known as Italy's Codice Fiscale.
Copyright (C) 2009-2016 Emanuele Rocca
Homepage: https://github.com/ema/pycodicefiscale
codicefiscale Module Documentation
==================================
A quick example
---------------
>>> import datetime
>>> from codicefiscale import build
>>>
>>> build('Rocca', 'Emanuele', datetime.datetime(1983, 11, 18), 'M', 'D969')
'RCCMNL83S18D969H'
Module Contents
---------------
``build(surname, name, birthday, sex, municipality) -> string``
Computes the fiscal code for the given person data.
eg: build('Rocca', 'Emanuele', datetime.datetime(1983, 11, 18), 'M', 'D969')
-> RCCMNL83S18D969H
``control_code(input_string) -> int``
Computes the control code for the given input_string string. The expected
input_string is the first 15 characters of a fiscal code.
eg: control_code('RCCMNL83S18D969') -> 'H'
``get_birthday(code) -> string``
Birthday of the person whose fiscal code is 'code', in the format DD-MM-YY.
Unfortunately it's not possible to guess the four digit birth year, given
that the Italian fiscal code uses only the last two digits (1983 -> 83).
Therefore, this function returns a string and not a datetime object.
eg: birthday('RCCMNL83S18D969H') -> 18-11-83
``get_sex(code) -> string``
The sex of the person whose fiscal code is 'code'.
eg: sex('RCCMNL83S18D969H') -> 'M'
sex('CNTCHR83T41D969D') -> 'F'
``isvalid(code) -> bool``
This function checks if the given fiscal code is syntactically valid.
eg: isvalid('RCCMNL83S18D969H') -> True
isvalid('RCCMNL83S18D969') -> False
|