GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing pypi.org โ python-codicefiscale python-codicefiscale 0.12.1encode / decode italian fiscal codes - codifica / decodifica del Codice Fiscale italiano. pip install python-codicefiscale python-codicefiscalepython-codicefiscale is a library for encode/decode Italian fiscal code - codifica/decodifica del Codice Fiscale. Features
Installation
UsagePythonImportfrom codicefiscale import codicefiscale
Encodecodicefiscale.encode(
lastname="Caccamo",
firstname="Fabio",
gender="M",
birthdate="03/04/1985",
birthplace="Torino",
)
# "CCCFBA85D03L219P"
Decodecodicefiscale.decode("CCCFBA85D03L219P")
# {
# "code": "CCCFBA85D03L219P",
# "gender": "M",
# "birthdate": datetime.datetime(1985, 4, 3, 0, 0),
# "birthplace": {
# "name": "TORINO"
# "province": "TO",
# "code": "L219",
# },
# "firstname_options": [
# "Fabio",
# ],
# "omocodes": [
# "CCCFBA85D03L219P",
# "CCCFBA85D03L21VE",
# "CCCFBA85D03L2MVP",
# "CCCFBA85D03LNMVE",
# "CCCFBA85D0PLNMVA",
# "CCCFBA85DLPLNMVL",
# "CCCFBA8RDLPLNMVX",
# "CCCFBAURDLPLNMVU",
# ],
# "raw": {
# "code": "CCCFBA85D03L219P",
# "lastname": "CCC",
# "firstname": "FBA",
# "birthdate": "85D03",
# "birthdate_year": "85"
# "birthdate_month": "D",
# "birthdate_day": "03",
# "birthplace": "L219",
# "cin": "P",
# },
# }
Checkcodicefiscale.is_valid("CCCFBA85D03L219P")
# True
codicefiscale.is_omocode("CCCFBA85D03L219P")
# False
Command LineThis library can be used also as a CLI tool, for more info run: python -m codicefiscale --help
Encode (CLI)python -m codicefiscale encode --firstname Fabio --lastname Caccamo --gender M --birthdate 03/04/1985 --birthplace Torino
Decode (CLI)python -m codicefiscale decode CCCFBA85D03L219P
Testing# clone repository
git clone https://github.com/fabiocaccamo/python-codicefiscale.git && cd python-codicefiscale
# create virtualenv and activate it
python -m venv venv && . venv/bin/activate
# upgrade pip
python -m pip install --upgrade pip
# install requirements
pip install -r requirements.txt -r requirements-test.txt
# install pre-commit to run formatters and linters
pre-commit install --install-hooks
# run tests using tox
tox
# or run tests using pytest
pytest
LicenseReleased under MIT License. Supporting
See also
Project linksData verified by PyPI on May 8, 2026
Data provided by the project maintainers, verified at the time the release was uploaded to PyPI.
Key datesPyPI dataData sourced directly from PyPI's database.
1 maintainerPyPI dataData sourced directly from PyPI's database.
CreditsData verified by PyPI on May 8, 2026Data provided by the project maintainers, verified at the time the release was uploaded to PyPI. Confirms that the provided email matches a verified, public email address on a PyPI user account associated with the project.
Author/Maintainer: Fabio Caccamo GitHub StatisticsData verified by PyPI on May 8, 2026The GitHub source repository was provided by the project maintainers and verified by PyPI at the time of upload. Stars, forks, and open issues/PRs are derived from that repository and have not been independently verified.
ProvenanceData verified by PyPI on May 8, 2026Data provided by the project maintainers and verified by PyPI at the time of upload.
LicenseMIT License (MIT License) Tags
Classifiers
MetadataProject linksData verified by PyPI on May 8, 2026
Data provided by the project maintainers, verified at the time the release was uploaded to PyPI.
Key datesPyPI dataData sourced directly from PyPI's database.
1 maintainerPyPI dataData sourced directly from PyPI's database.
CreditsData verified by PyPI on May 8, 2026Data provided by the project maintainers, verified at the time the release was uploaded to PyPI. Confirms that the provided email matches a verified, public email address on a PyPI user account associated with the project.
Author/Maintainer: Fabio Caccamo GitHub StatisticsData verified by PyPI on May 8, 2026The GitHub source repository was provided by the project maintainers and verified by PyPI at the time of upload. Stars, forks, and open issues/PRs are derived from that repository and have not been independently verified.
ProvenanceData verified by PyPI on May 8, 2026Data provided by the project maintainers and verified by PyPI at the time of upload.
LicenseMIT License (MIT License) Tags
Classifiers
Release files for python-codicefiscale 0.12.1For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation. Source distribution (sdist)
Built distribution (wheel)
Total release size: 866.1 kB Release files / python_codicefiscale-0.12.1.tar.gz
ProvenanceProvenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats. PyPI Publish AttestationPyPI verified that this artifact, at this checksum, originated from the publisher listed below. Signed by GitHub Actions, verified by PyPI on May 8, 2026. Transparency logIdentity
WorkflowArtifact
Release files / python_codicefiscale-0.12.1-py3-none-any.whl
ProvenanceProvenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats. PyPI Publish AttestationPyPI verified that this artifact, at this checksum, originated from the publisher listed below. Signed by GitHub Actions, verified by PyPI on May 8, 2026. Transparency logIdentity
WorkflowArtifact
Security for python-codicefiscale 0.12.1ProvenanceProvenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats. Full provenanceBoth files in this release have been uploaded with provenance metadata.
Select from 2 files
No files match the current filters. Reset filters
Attestation for python_codicefiscale-0.12.1.tar.gzPyPI Publish AttestationPyPI verified that this artifact, at this checksum, originated from the publisher listed below. Signed by GitHub Actions, verified by PyPI on May 8, 2026. Transparency logIdentity
WorkflowArtifact
Attestation for python_codicefiscale-0.12.1-py3-none-any.whlPyPI Publish AttestationPyPI verified that this artifact, at this checksum, originated from the publisher listed below. Signed by GitHub Actions, verified by PyPI on May 8, 2026. Transparency logIdentity
WorkflowArtifact
A note on package securityPyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package. To learn more about protecting yourself from malicious actors, visit our package security documentation. Release history Release notifications | RSS feed | ||||||||||||||||||||||||||||||||||||||||||||||||||||
| You are visitor 01402792 โ GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800ร600. No cookies required. |