:it: :credit_card: italian fiscal codes encoding, decoding and validation - codifica, decodifica e validazione del Codice Fiscale italiano.
Python 3.12
support.python -m codicefiscale validate {code}
.codicefiscale.data
module with methods for exposing data.flake8
with Ruff
.setup.cfg
to pyproject.toml
.surname
-> lastname
name
-> firstname
sex
-> gender
setup.cfg
(setuptools
declarative syntax) generated using setuptools-py2cfg
.pyupgrade
to pre-commit
config.tests/
from dist.countries.json
and municipalities.json
data.Python 3.11
support.pre-commit
.pypy
to CI.Python < 3.8
support.countries.json
and/or municipalities.json
data.str.format
with f-strings
.CODICEFISCALE_RE
regex by naming subpatterns.str.format
with f-strings
.countries.json
and municipalities.json
data.