Skip to main content

Faz a validação de CNPJ Brasileiro

Project description

validate-cnpj

pipy

Validates Brazilian CNPJ

Features

  • CNPJ Validation with mask
  • CNPJ Validation without mask

Modes of use

#!/usr/bin/python
import validate_cnpj

# Without mask
validate_cnpj.is_valid('40158686000170') # True

# With mask
validate_cnpj.is_valid('40.158.686/0001-70') # True

or

#!/usr/bin/python
from validate_cnpj import is_valid

# Without mask
is_valid('11.111.111/0001-11') # False

# With mask
is_valid('11111111000111') # False

Author

João Filho Github

Credits

This package was created with Cookiecutter and the cs01/cookiecutter-pypackage project template.

Cookiecutter

cs01/cookiecutter-pypackage

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

validate_cnpj-0.0.1.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

validate_cnpj-0.0.1-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file validate_cnpj-0.0.1.tar.gz.

File metadata

  • Download URL: validate_cnpj-0.0.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.8.10 Linux/5.4.0-89-generic

File hashes

Hashes for validate_cnpj-0.0.1.tar.gz
Algorithm Hash digest
SHA256 df68e2150e50b5a0cee5a094c526c27763db73447bed06c8ed9334c5bb84d080
MD5 949546383c284ba4030da8716fc4d836
BLAKE2b-256 868bd7083d05c79a180087d339a54f2ac1acd0a21df426fe6f15384a3c999a23

See more details on using hashes here.

File details

Details for the file validate_cnpj-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: validate_cnpj-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.8.10 Linux/5.4.0-89-generic

File hashes

Hashes for validate_cnpj-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 db195ee87713f20f33943c9de282de47798de2a0df8efc56d2a12dd10126d9e7
MD5 23315c9d4ae16f7f5056e9e90fe63749
BLAKE2b-256 ad22a6115794e453d03bdea65222070046ec3c40a3b6897b9d073ddb93f51206

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