{ "info": { "author": "Fabio Caccamo", "author_email": "fabio.caccamo@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Software Development :: Build Tools" ], "description": "[![Build Status](https://travis-ci.org/fabiocaccamo/python-codicefiscale.svg?branch=master)](https://travis-ci.org/fabiocaccamo/python-codicefiscale)\n[![codecov](https://codecov.io/gh/fabiocaccamo/python-codicefiscale/branch/master/graph/badge.svg)](https://codecov.io/gh/fabiocaccamo/python-codicefiscale)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/375ce4fc87dc44e88271f7da9f5f69d1)](https://www.codacy.com/app/fabiocaccamo/python-codicefiscale)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/fabiocaccamo/python-codicefiscale/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/fabiocaccamo/python-codicefiscale/?branch=master)\n[![Requirements Status](https://requires.io/github/fabiocaccamo/python-codicefiscale/requirements.svg?branch=master)](https://requires.io/github/fabiocaccamo/python-codicefiscale/requirements/?branch=master)\n[![PyPI version](https://badge.fury.io/py/python-codicefiscale.svg)](https://badge.fury.io/py/python-codicefiscale)\n[![PyPI downloads](https://img.shields.io/pypi/dm/python-codicefiscale.svg)](https://img.shields.io/pypi/dm/python-codicefiscale.svg)\n[![Py versions](https://img.shields.io/pypi/pyversions/python-codicefiscale.svg)](https://img.shields.io/pypi/pyversions/python-codicefiscale.svg)\n[![License](https://img.shields.io/pypi/l/python-codicefiscale.svg)](https://img.shields.io/pypi/l/python-codicefiscale.svg)\n\n# python-codicefiscale\npython-codicefiscale is a tiny library for encode/decode Italian fiscal code - **codifica/decodifica del Codice Fiscale**.\n\n## Features\n- **Transliteration** for name/surname\n- **Multiple** birthdate formats (datetime/string) *(you can see all the supported string formats in* `tests/tests.py` *)*\n- **Automatic** birthplace city/foreign-country code detection from name\n- **Omocodia** support\n\n## Installation\n`pip install python-codicefiscale`\n\n## Usage\n\n#### Import\n```python\nfrom codicefiscale import codicefiscale\n```\n#### Encode\n```python\ncodicefiscale.encode(surname='Caccamo', name='Fabio', sex='M', birthdate='03/04/1985', birthplace='Torino')\n\n# 'CCCFBA85D03L219P'\n```\n#### Decode\n```python\ncodicefiscale.decode('CCCFBA85D03L219P')\n\n# {\n# 'code': 'CCCFBA85D03L219P',\n# 'sex': 'M',\n# 'birthdate': datetime.datetime(1985, 4, 3, 0, 0),\n# 'birthplace': {\n# 'name': 'TORINO'\n# 'province': 'TO',\n# 'code': 'L219',\n# },\n# 'omocodes': [\n# 'CCCFBA85D03L219P',\n# 'CCCFBA85D03L21VE',\n# 'CCCFBA85D03L2MVP',\n# 'CCCFBA85D03LNMVE',\n# 'CCCFBA85D0PLNMVA',\n# 'CCCFBA85DLPLNMVL',\n# 'CCCFBA8RDLPLNMVX',\n# 'CCCFBAURDLPLNMVU',\n# ],\n# 'raw': {\n# 'code': 'CCCFBA85D03L219P',\n# 'surname': 'CCC',\n# 'name': 'FBA',\n# 'birthdate': '85D03',\n# 'birthdate_year': '85'\n# 'birthdate_month': 'D',\n# 'birthdate_day': '03',\n# 'birthplace': 'L219',\n# 'cin': 'P',\n# },\n# }\n```\n\n#### Check\n```python\ncodicefiscale.is_valid('CCCFBA85D03L219P')\n\n# True\n```\n```python\ncodicefiscale.is_omocode('CCCFBA85D03L219P')\n\n# False\n```\n\n### Test\n\n`tox` / `python setup.py test` / `python -m unittest tests.tests`\n\n---\n\n## License\nReleased under [MIT License](LICENSE).\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "https://github.com/fabiocaccamo/python-codicefiscale/archive/0.3.5.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/fabiocaccamo/python-codicefiscale", "keywords": "codicefiscale,codice,fiscale,cf,fiscal code", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "python-codicefiscale", "package_url": "https://pypi.org/project/python-codicefiscale/", "platform": "", "project_url": "https://pypi.org/project/python-codicefiscale/", "project_urls": { "Download": "https://github.com/fabiocaccamo/python-codicefiscale/archive/0.3.5.tar.gz", "Homepage": "https://github.com/fabiocaccamo/python-codicefiscale" }, "release_url": "https://pypi.org/project/python-codicefiscale/0.3.5/", "requires_dist": [ "python-dateutil", "python-slugify" ], "requires_python": "", "summary": "python-codicefiscale is a tiny library for encode/decode Italian fiscal code - codifica/decodifica del Codice Fiscale.", "version": "0.3.5" }, "last_serial": 5485751, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "4a82f77ca654fc7e8ec3b6464069324f", "sha256": "87df8e22fe021423972757d2e78e2fceebd58a9cf55b1f86427d0bcc11ff872d" }, "downloads": -1, "filename": "python-codicefiscale-0.1.0.tar.gz", "has_sig": false, "md5_digest": "4a82f77ca654fc7e8ec3b6464069324f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 90346, "upload_time": "2017-10-10T09:16:32", "url": "https://files.pythonhosted.org/packages/fa/d6/b1153d7e4a22d729739e0fffb2e361d83ce275e5294c37d11ebf1da8e60f/python-codicefiscale-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "0f20c176685c5341a777afadc1ea20b8", "sha256": "d7607a3abfe861420cd6df404db74d288615c1bb9b4c47369057ceed0d6bc229" }, "downloads": -1, "filename": "python-codicefiscale-0.1.1.tar.gz", "has_sig": false, "md5_digest": "0f20c176685c5341a777afadc1ea20b8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 90486, "upload_time": "2017-10-12T09:52:40", "url": "https://files.pythonhosted.org/packages/7e/64/8284e149b505ccd7da690e14991becec420c6ec685deead8904445841d1f/python-codicefiscale-0.1.1.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "74f03952d83992f9a6e20b3ae5234c0a", "sha256": "1b53d4da161eb67fc8154e6f86a8701b3ecf0e723822d880c5e42223e43609e9" }, "downloads": -1, "filename": "python-codicefiscale-0.2.0.tar.gz", "has_sig": false, "md5_digest": "74f03952d83992f9a6e20b3ae5234c0a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 90660, "upload_time": "2017-10-17T15:51:44", "url": "https://files.pythonhosted.org/packages/81/c2/c6032bde3b321528331783b0a7ab922909954e5746385af3cc7391f27276/python-codicefiscale-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "e21b569ed8502b86fd41982bb40a9a47", "sha256": "25d8b0ecb4981bde8634e71303f925bfe23bc3272cc67970847f951ea607ffd2" }, "downloads": -1, "filename": "python-codicefiscale-0.2.1.tar.gz", "has_sig": false, "md5_digest": "e21b569ed8502b86fd41982bb40a9a47", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 90960, "upload_time": "2017-10-18T10:49:34", "url": "https://files.pythonhosted.org/packages/2b/c4/f20e4e5e70296a5c42359667c76c175d55cf7c53a787b119ac944cde3aad/python-codicefiscale-0.2.1.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "699d7580b142b01d157171f7f8d6e353", "sha256": "525bb55ed98c39233a047a1b3844b5696dbdbb5a6db5ec1ce011ac332f89bf17" }, "downloads": -1, "filename": "python-codicefiscale-0.3.0.tar.gz", "has_sig": false, "md5_digest": "699d7580b142b01d157171f7f8d6e353", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 91027, "upload_time": "2017-11-06T10:43:08", "url": "https://files.pythonhosted.org/packages/77/8d/1445a60424a147321a60f6c11c3213bb74a8df3a08847af74290eff6800b/python-codicefiscale-0.3.0.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "4fef613b60166e89b9296da85672d31a", "sha256": "ee747de2bbcb4b7f996484135aae8e96edf7b9328df11b683c6cf5d7e473fb00" }, "downloads": -1, "filename": "python-codicefiscale-0.3.1.tar.gz", "has_sig": false, "md5_digest": "4fef613b60166e89b9296da85672d31a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 91032, "upload_time": "2018-05-03T12:46:49", "url": "https://files.pythonhosted.org/packages/3d/e6/58eeca054ca719d3a4ae5d2e11c138e4f83918b0c75d5fa0cca0d3176577/python-codicefiscale-0.3.1.tar.gz" } ], "0.3.2": [ { "comment_text": "", "digests": { "md5": "299f840747053ec5793a96c1cf438cce", "sha256": "17f73da8fda5d63a32c70affe6ce6bf749b43a8e5d81872e8609394bc2958261" }, "downloads": -1, "filename": "python-codicefiscale-0.3.2.tar.gz", "has_sig": false, "md5_digest": "299f840747053ec5793a96c1cf438cce", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 91035, "upload_time": "2018-09-17T09:05:51", "url": "https://files.pythonhosted.org/packages/e6/d7/cbe6a1590137b1cf42a5a4b893ee2e0de6dd59d36b26d012561a58d6327a/python-codicefiscale-0.3.2.tar.gz" } ], "0.3.3": [ { "comment_text": "", "digests": { "md5": "dff49618a5827081dc9f3c3263f5ff85", "sha256": "f2f0d7e11901f1c4cdfd6ae9eeacb682fc6d066185a15c9a4f06afe7794f01e6" }, "downloads": -1, "filename": "python-codicefiscale-0.3.3.tar.gz", "has_sig": false, "md5_digest": "dff49618a5827081dc9f3c3263f5ff85", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 91110, "upload_time": "2018-11-14T09:22:52", "url": "https://files.pythonhosted.org/packages/a4/0a/81a4ede4dba174276884ec09bde4338573b4f48807cd88dd4f4137771917/python-codicefiscale-0.3.3.tar.gz" } ], "0.3.4": [ { "comment_text": "", "digests": { "md5": "559d56756cd5c69936d093f74f90f571", "sha256": "6163211fa8a47acf6d0e3bcdb611e9713f9665a02c8e20cb1deba80ec3f6071a" }, "downloads": -1, "filename": "python-codicefiscale-0.3.4.tar.gz", "has_sig": false, "md5_digest": "559d56756cd5c69936d093f74f90f571", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 91144, "upload_time": "2019-02-07T10:15:04", "url": "https://files.pythonhosted.org/packages/12/53/5e652efdf69eb5e19a8dfbd87c738d511e4dcb32e81665c64da62a7fc3fa/python-codicefiscale-0.3.4.tar.gz" } ], "0.3.5": [ { "comment_text": "", "digests": { "md5": "619f5b8820214600bb3f4e77db766618", "sha256": "1327dfa239cf236cd2abdbde5173b80b3bb8407a0283df2e43950f9cb206a5f5" }, "downloads": -1, "filename": "python_codicefiscale-0.3.5-py2-none-any.whl", "has_sig": false, "md5_digest": "619f5b8820214600bb3f4e77db766618", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 94788, "upload_time": "2019-07-04T09:22:36", "url": "https://files.pythonhosted.org/packages/e1/40/c7cfae32e5cb925b98c42c7aaf61778de7d57966051874413fa3d23f1c67/python_codicefiscale-0.3.5-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3cd457f7c446016c852d71d29efbc33b", "sha256": "803ba96066fc07a0cf934cbc7e7bde19c2cc1c78a40e806e08786e408b514730" }, "downloads": -1, "filename": "python-codicefiscale-0.3.5.tar.gz", "has_sig": false, "md5_digest": "3cd457f7c446016c852d71d29efbc33b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 90829, "upload_time": "2019-07-04T09:22:38", "url": "https://files.pythonhosted.org/packages/3a/c3/abd0f5df86d511a9bb51bd7f4e099449620e1b017cf6bf58014380412ebc/python-codicefiscale-0.3.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "619f5b8820214600bb3f4e77db766618", "sha256": "1327dfa239cf236cd2abdbde5173b80b3bb8407a0283df2e43950f9cb206a5f5" }, "downloads": -1, "filename": "python_codicefiscale-0.3.5-py2-none-any.whl", "has_sig": false, "md5_digest": "619f5b8820214600bb3f4e77db766618", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 94788, "upload_time": "2019-07-04T09:22:36", "url": "https://files.pythonhosted.org/packages/e1/40/c7cfae32e5cb925b98c42c7aaf61778de7d57966051874413fa3d23f1c67/python_codicefiscale-0.3.5-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3cd457f7c446016c852d71d29efbc33b", "sha256": "803ba96066fc07a0cf934cbc7e7bde19c2cc1c78a40e806e08786e408b514730" }, "downloads": -1, "filename": "python-codicefiscale-0.3.5.tar.gz", "has_sig": false, "md5_digest": "3cd457f7c446016c852d71d29efbc33b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 90829, "upload_time": "2019-07-04T09:22:38", "url": "https://files.pythonhosted.org/packages/3a/c3/abd0f5df86d511a9bb51bd7f4e099449620e1b017cf6bf58014380412ebc/python-codicefiscale-0.3.5.tar.gz" } ] }