Skip to main content

cpf_tools

made-with-python GitHub Workflow Status Total alerts Language grade: Python PyPi Anaconda

Biblioteca com ferramentas para auxiliar na checagem, formatação etc. de CPFs.

Instalação:

$ pip install cpf-tools

Funções:

  • cpf-tools.cpf_int_validation(cpf: int) -> bool:

Essa função recebe um valor inteiro e verifica se o digito verificador do CPF é verdadeiro (True) ou falso (False).

  • cpf-tools.cpf_str_validation(cpf: str) -> bool:

Essa função recebe um valor string e verifica se o digito verificador do CPF é verdadeiro (True) ou falso (False).

  • cpf-tools.cpf_format(cpf: Union[int, str, float]) -> str:

Essa função recebe um valor integer, string ou float de um CPF e retorna uma string formatada. (Exemplo: "00000000000" -> "000.000.000-00")

Usando com Pandas:

Para utilizar com a biblioteca Pandas, utilize o seguinte comando:

df['your-cpf-field'].apply(cpf-tools.cpf_int_validation) ou

df['your-cpf-field'].apply(cpf-tools.cpf_str_validation) ou

df['your-cpf-field'].apply(cpf-tools.cpf_format)

Metadata

Release files for cpf-tools 1.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cpf-tools 1.5.1
File Size Uploaded Provenance Actions
cpf_tools-1.5.1.tar.gz 3.6 kB Without provenance Details for cpf_tools-1.5.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cpf-tools 1.5.1
File Interpreter ABI Platform Actions
cpf_tools-1.5.1-py3-none-any.whl Python 3 none any Details for cpf_tools-1.5.1-py3-none-any.whl

Total release size: 7.3 kB

Release files / cpf_tools-1.5.1.tar.gz

Download URL cpf_tools-1.5.1.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
63e615ee8360a403f7eec27b6001e65c71608953ad7760fa771cb7ace02155d6
BLAKE2b-256 checksum
How to use checksums
9e74d285fcf47b3e72460376249820e215d484ff8afd417f0f2adf87ba7ebf60
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/0.0.0 CPython/3.10.4

Release files / cpf_tools-1.5.1-py3-none-any.whl

Download URL cpf_tools-1.5.1-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a2b493215d9bf47d440d37094772ffc640cd8508462aa864ac5506a60634ef63
BLAKE2b-256 checksum
How to use checksums
b33ad3d9b77d7e462f04cbe5f7cda61050c6dde6aa4fcaa8e5223db2e02d6cce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/0.0.0 CPython/3.10.4

Security for cpf-tools 1.5.1

Provenance

Provenance 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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI 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

This release

1.5.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page