Validate CPF and CNPJ
Project description
BRtools
Brazilian Validators
Features
- CPF Validation with or without mask
- CNPJ Validation with or without mask
Modes of use
- CPF
#!/usr/bin/python
from brtools import validators
# Without mask
validators.is_valid_cnpj('40158686000170') # True
# With mask
validators.is_valid_cnpj('40.158.686/0001-70') # True
- CNPJ
#!/usr/bin/python
from brtools import validators
# Without mask
validators.is_valid_cnpj('40158686000170') # True
# With mask
validators.is_valid_cnpj('40.158.686/0001-70') # True
Author
Credits
This package was created with Cookiecutter and the cs01/cookiecutter-pypackage project template.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
python-brtools-0.0.1.tar.gz
(3.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file python-brtools-0.0.1.tar.gz.
File metadata
- Download URL: python-brtools-0.0.1.tar.gz
- Upload date:
- Size: 3.1 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59cda6dbb35dad536109c652f614e038dfa39c048d981abf2f02874bc6b07ef2
|
|
| MD5 |
ca39e0c6c499cc74eb0f063099aeb410
|
|
| BLAKE2b-256 |
e1c25fb6c57cb37bcbb7f12d5d4c357000688f9257a2d6b28a8bfa63198048fa
|
File details
Details for the file python_brtools-0.0.1-py3-none-any.whl.
File metadata
- Download URL: python_brtools-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.8 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c2e7be9b03fbc1a3a144d2c28b3170757d035b70f3c9a132538753fa0e4da38b
|
|
| MD5 |
a8920f4dd67cc94ed709f0505cef38b5
|
|
| BLAKE2b-256 |
d1d60d5235e043c53b3c40811cf28b8a34143a96104b8e96d061b324473c5bff
|