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 python_brtools import validators
# With mask
validators.is_valid_cpf('386.438.283-19') # True
# Without mask
validators.is_valid_cpf('38643828319') # True
- CNPJ
#!/usr/bin/python
from python_brtools import validators
# With mask
validators.is_valid_cnpj('40.158.686/0001-70') # True
# Without mask
validators.is_valid_cnpj('40158686000170') # 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.2.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.2.tar.gz.
File metadata
- Download URL: python-brtools-0.0.2.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 |
a61474e0bcb85ca9484b33028b4aa5f32411f25cb72c649d2c1a129076926e88
|
|
| MD5 |
23d3026a17c08140d3ddc6e8b0e277dd
|
|
| BLAKE2b-256 |
fd94dc7b96e309cd31274e866c09f0bdf5c42ee753aab7adda260727d3730571
|
File details
Details for the file python_brtools-0.0.2-py3-none-any.whl.
File metadata
- Download URL: python_brtools-0.0.2-py3-none-any.whl
- Upload date:
- Size: 3.9 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 |
2ea68e9ca86592ac13bf412448e45c0e8ce801efacce7044fce5b1002713fa21
|
|
| MD5 |
baeaa08eea5e2cc636fd723eea202b98
|
|
| BLAKE2b-256 |
d2c26ebc1cc446bbe7db695ed6f3d73ee8e413a17a8d6ff674141ab6fa29f997
|