Skip to main content

cpf_alfacnpj

Biblioteca de validação de CPF e CNPJ, inclusive com suporte ao CNPJ alfanumérico (2026).

[!CAUTION] Por favor, note que o cálculo está baseado na pouca documentação fornecida até junho de 2024. Ainda não foram fornecidos exemplos de CNPJs válidos para que seja possível testar completamente.

Veja no PyPI: https://pypi.org/project/cpf-alfacnpj/

Instalação

Você pode instalar a biblioteca via pip:

pip install cpf-alfacnpj

Uso em programas

>>> from cpf_alfacnpj import validar_cnpj_alfanumerico
>>> print(validar_cnpj_alfanumerico("AB.C4A.678/0001-60"))
True

Metadata

Release files for cpf-alfacnpj 0.3.0

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-alfacnpj 0.3.0
File Size Uploaded
cpf_alfacnpj-0.3.0.tar.gz 3.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cpf-alfacnpj 0.3.0
File Interpreter ABI Platform
cpf_alfacnpj-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.5 kB

Release files / cpf_alfacnpj-0.3.0.tar.gz

Download URL cpf_alfacnpj-0.3.0.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
8a2c07fdbc854e9a9e60afd3ae89990eecf2b683228baa22f449ff27c2d473b0
BLAKE2b-256 checksum
How to use checksums
7cd4c0149d7712566b838565ca6aab7b119b248e36481595b5352fbc8b1eba63
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.9.19

Release files / cpf_alfacnpj-0.3.0-py3-none-any.whl

Download URL cpf_alfacnpj-0.3.0-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
18a9096cdefbe36762108b30ab974e73ee356e60b85760fa1e8b00df2022db2f
BLAKE2b-256 checksum
How to use checksums
6c72245e7c3c8867b1bea47c296c5ba5c8395a7d0675504c755b14abdd663045
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.9.19

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.0

2 release files

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