{ "info": { "author": "Eduardo Bas\u00edlio", "author_email": "eduardoafonsobasilio@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.6" ], "description": "# **domplus**\n[![Build Status](https://travis-ci.org/eabps/domplus.svg?branch=master)](https://travis-ci.org/eabps/domplus)\n[![Code Health](https://landscape.io/github/eabps/domplus/master/landscape.svg?style=flat)](https://landscape.io/github/eabps/domplus/master)\n[![PyPI pyversions](https://img.shields.io/pypi/pyversions/domplus.svg)](https://pypi.python.org/pypi/domplus/)\n[![PyPI version shields.io](https://img.shields.io/pypi/v/domplus.svg)](https://pypi.python.org/pypi/domplus/)\n[![PyPI status](https://img.shields.io/pypi/status/domplus.svg)](https://pypi.python.org/pypi/domplus/)\n[![PyPI download month](https://img.shields.io/pypi/dm/domplus.svg)](https://pypi.python.org/pypi/domplus/)\n\n_domplus_ is a python package with common functions for commercial applications.\n\n## **Features**\n* Check if a _string_ is a _valid_ **Brazilian CPF**\n* Check if a _string_ is a _valid_ **Brazilian CNPJ**\n* Check if a _string_ is a _valid_ **Brazilian CPF** or a _valid_ **Brazilian CNPJ**\n* Check if a string is a _valid_ **credit card number**\n\n## **Install**\n``` console\npip install domplus\n```\n\n## **Usage govplus**\nCheck if a _string_ is a _valid_ **Brazilian CPF**. Return `True` or `False`\n\n``` python\nfrom domplus import govplus\n\ngovplus.is_valid_br_cpf(\"03167158590\")\n# OR\ngovplus.is_valid_br_cpf(\"031.671.585-90\")\n```\n\nCheck if a _string_ is a _valid_ **Brazilian CNPJ**. Return `True` or `False`\n\n``` python\nfrom domplus import govplus\n\ngovplus.is_valid_br_cnpj(\"75317134000130\")\n# OR\ngovplus.is_valid_br_cnpj(\"75.317.134/0001-30\")\n```\n\nCheck if a _string_ is a _valid_ **Brazilian CPF** or a valid **Brazilian CNPJ**. Return `\"cpf\"`, `\"cnpj\"` or `False`\n\n``` python\nfrom domplus import govplus\n\ngovplus.is_br_cpf_or_cnpj(\"03167158590\")\n# OR\ngovplus.is_br_cpf_or_cnpj(\"031.671.585-90\")\n\n# OR\ngovplus.is_br_cpf_or_cnpj(\"75317134000130\")\n# OR\ngovplus.is_br_cpf_or_cnpj(\"75.317.134/0001-30\")\n```\n\n**Note about Brazilian CPF/CNPJ generation algorithm:** _In this software, **valid** means that the analyzed string conforms to the Brazilian CPF/CNPJ generation algorithm. This software does not make any verification in the records of the Brazilian Government. Therefore, it is possible that a valid string has not been issued by the Brazilian Government._\n\n## **Usage financeplus**\nCheck if a string is a _valid_ **credit card number**. Return `True` or `False`\n\n``` python\nfrom domplus import financeplus\n\nfinanceplus.is_valid_creditcard(\"374356783424314\")\n```\n\n**Note about credit card generation algorithm:** _In this software, **valid** means that the analyzed string conforms to the [Luhn algorithm](https://en.wikipedia.org/wiki/Luhn_algorithm \"Luhn algorithm\") used by the credit card administrators. This software does not make any checks on the records of the credit card administrators. Therefore, it is possible that a valid string has not been issued by the credit card administrator._\n\n## **Run tests**\n\nInstall requirements\n``` console\npip install -r requirements_dev.txt\n```\n\nRun\n``` console\ntox\n```\n\n## **License**\nThe MIT License (MIT)\n\nCopyright (c) 2019, Eduardo Bas\u00edlio\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n[![PyPI license](https://img.shields.io/pypi/l/domplus.svg)](https://pypi.python.org/pypi/domplus/)\n[![made-with-python](https://img.shields.io/badge/Made%20with-Python-1f425f.svg)](https://www.python.org/)\n\n\n# History\n\n0.1.9 (2019-05-01)\n* Update to Python 3.6\n* Added invalid CPF / CNPJ list used by Brazilian Government - Serpro at [irpf-livre-src](http://www.fsfla.org/~lxoliva/fsfla/irpf-livre/2009/r6675/irpf-livre-src.tar.bz2)\n\n0.1.3 (2015-04-19)\n* First release on PyPI.", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/eabps/domplus", "keywords": "domplus", "license": "MIT license", "maintainer": "", "maintainer_email": "", "name": "domplus", "package_url": "https://pypi.org/project/domplus/", "platform": "", "project_url": "https://pypi.org/project/domplus/", "project_urls": { "Homepage": "https://github.com/eabps/domplus" }, "release_url": "https://pypi.org/project/domplus/0.1.9/", "requires_dist": null, "requires_python": "", "summary": "domplus is a python package with common functions for commercial applications.", "version": "0.1.9" }, "last_serial": 5223676, "releases": { "0.1.3": [ { "comment_text": "", "digests": { "md5": "33b5c4f3d391aabd1152143e42af16fe", "sha256": "a191319ef41ffc26bc831fba3a1d43b96db88e7ca420153d29d62172e9962db4" }, "downloads": -1, "filename": "domplus-0.1.3.tar.gz", "has_sig": false, "md5_digest": "33b5c4f3d391aabd1152143e42af16fe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13261, "upload_time": "2015-04-19T20:05:07", "url": "https://files.pythonhosted.org/packages/14/26/550e1745af159ea3a30af5f33c08cac8704d1cc18d1ef1d39b0910269ae5/domplus-0.1.3.tar.gz" } ], "0.1.9": [ { "comment_text": "", "digests": { "md5": "e3edd72c0c26e5fa8b49a6d90c17d9ea", "sha256": "8f9d040117ad4cc94bd350c5db6e89ceac5487ddf4bce792c2e0f4813ae353f1" }, "downloads": -1, "filename": "domplus-0.1.9.tar.gz", "has_sig": false, "md5_digest": "e3edd72c0c26e5fa8b49a6d90c17d9ea", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11434, "upload_time": "2019-05-03T20:59:33", "url": "https://files.pythonhosted.org/packages/8c/83/4f07e302730f46c75e019c5c10d53c8560000ce13bea71cbb8d3206863cb/domplus-0.1.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e3edd72c0c26e5fa8b49a6d90c17d9ea", "sha256": "8f9d040117ad4cc94bd350c5db6e89ceac5487ddf4bce792c2e0f4813ae353f1" }, "downloads": -1, "filename": "domplus-0.1.9.tar.gz", "has_sig": false, "md5_digest": "e3edd72c0c26e5fa8b49a6d90c17d9ea", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11434, "upload_time": "2019-05-03T20:59:33", "url": "https://files.pythonhosted.org/packages/8c/83/4f07e302730f46c75e019c5c10d53c8560000ce13bea71cbb8d3206863cb/domplus-0.1.9.tar.gz" } ] }