cpfpy


Namecpfpy JSON
Version 0.0.1 PyPI version JSON
download
home_pagehttps://github.com/adryansf/cpfpy
SummaryThis Python module validates and formats CPF numbers, ensuring they are correct and follow the standard Brazilian format.
upload_time2024-09-07 00:20:12
maintainerNone
docs_urlNone
authorAdryan Freitas
requires_python>=3.0
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # CPFPY

This Python module provides tools for validating and formatting CPF numbers.

## Installation

To install, you can use pip:

```bash
pip install cpfpy
```

## Usage

### Validation

```python
from cpfpy import validate_cpf

cpf = "123.456.789-09"
if validate_cpf(cpf):
    print("Valid CPF!")
else:
    print("Invalid CPF.")
```

### Formatting

```python
from cpfpy import format_cpf

cpf = "12345678909"
formatted_cpf = format_cpf(cpf)
print(formatted_cpf)  # Output: 123.456.789-09
```

## License

[MIT](https://choosealicense.com/licenses/mit/)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/adryansf/cpfpy",
    "name": "cpfpy",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.0",
    "maintainer_email": null,
    "keywords": null,
    "author": "Adryan Freitas",
    "author_email": "adryansfreitas@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/7e/20/fa1d6674795d35f10a3e3f1aa08a5e0cc423e2008949bf00475d8d4c6bcb/cpfpy-0.0.1.tar.gz",
    "platform": null,
    "description": "# CPFPY\n\nThis Python module provides tools for validating and formatting CPF numbers.\n\n## Installation\n\nTo install, you can use pip:\n\n```bash\npip install cpfpy\n```\n\n## Usage\n\n### Validation\n\n```python\nfrom cpfpy import validate_cpf\n\ncpf = \"123.456.789-09\"\nif validate_cpf(cpf):\n    print(\"Valid CPF!\")\nelse:\n    print(\"Invalid CPF.\")\n```\n\n### Formatting\n\n```python\nfrom cpfpy import format_cpf\n\ncpf = \"12345678909\"\nformatted_cpf = format_cpf(cpf)\nprint(formatted_cpf)  # Output: 123.456.789-09\n```\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "This Python module validates and formats CPF numbers, ensuring they are correct and follow the standard Brazilian format.",
    "version": "0.0.1",
    "project_urls": {
        "Homepage": "https://github.com/adryansf/cpfpy"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cbbc04b44551dc00762e81ff6cf215e92b96cd0dc47ce962c7ebf72328583a0d",
                "md5": "28c58eda1b0807da93e212695869755f",
                "sha256": "78fc1a8095ca729193ea327e58777abad5ea3a282df556bb2eee610b9108741f"
            },
            "downloads": -1,
            "filename": "cpfpy-0.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "28c58eda1b0807da93e212695869755f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.0",
            "size": 3228,
            "upload_time": "2024-09-07T00:20:10",
            "upload_time_iso_8601": "2024-09-07T00:20:10.581682Z",
            "url": "https://files.pythonhosted.org/packages/cb/bc/04b44551dc00762e81ff6cf215e92b96cd0dc47ce962c7ebf72328583a0d/cpfpy-0.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7e20fa1d6674795d35f10a3e3f1aa08a5e0cc423e2008949bf00475d8d4c6bcb",
                "md5": "fcd37f92b33861c0bd098b74274590b9",
                "sha256": "8b32b47b26323ab535cb58748ba12d4ac6d21fee66fc5bf7686a6b7d091ab21c"
            },
            "downloads": -1,
            "filename": "cpfpy-0.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "fcd37f92b33861c0bd098b74274590b9",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.0",
            "size": 2436,
            "upload_time": "2024-09-07T00:20:12",
            "upload_time_iso_8601": "2024-09-07T00:20:12.266106Z",
            "url": "https://files.pythonhosted.org/packages/7e/20/fa1d6674795d35f10a3e3f1aa08a5e0cc423e2008949bf00475d8d4c6bcb/cpfpy-0.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-07 00:20:12",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "adryansf",
    "github_project": "cpfpy",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "cpfpy"
}
        
Elapsed time: 0.35805s