Skip to main content

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

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cpf_alfacnpj-0.3.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cpf_alfacnpj-0.3.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file cpf_alfacnpj-0.3.0.tar.gz.

File metadata

  • Download URL: cpf_alfacnpj-0.3.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.19

File hashes

Hashes for cpf_alfacnpj-0.3.0.tar.gz
Algorithm Hash digest
SHA256 8a2c07fdbc854e9a9e60afd3ae89990eecf2b683228baa22f449ff27c2d473b0
MD5 112dd04f9fe10c10fe9f9971dfd6bd97
BLAKE2b-256 7cd4c0149d7712566b838565ca6aab7b119b248e36481595b5352fbc8b1eba63

See more details on using hashes here.

File details

Details for the file cpf_alfacnpj-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: cpf_alfacnpj-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.19

File hashes

Hashes for cpf_alfacnpj-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 18a9096cdefbe36762108b30ab974e73ee356e60b85760fa1e8b00df2022db2f
MD5 63583a3cc23fd7c9e119eebba75151b7
BLAKE2b-256 6c72245e7c3c8867b1bea47c296c5ba5c8395a7d0675504c755b14abdd663045

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page