Tools to test brazilian register numbers (CPF or CNPJ)
Project description
brazilian_register
Description. The package brazilian_register is used to: - Check brazilian Natural Persons Register number (Cadastro de Pessoa Física - CPF). - Check brazilian National Registry of Legal Entities (Cadastro Nacional da Pessoa Jurídica - CNPJ).
Installation
Use the package manager pip to install brazilian_register
pip install brazilian_register
Usage
from brazilian_register.cnpj import cnpj_tools
cnpj_tools.cnpj('cnpj number')
from brazilian_register.cpf import cpf_tools
cpf_tools.cpf('cpf number')
To Check document number.
check = cpf('cpf number')
print(check.cpf_status())
True if the verification code is correct or False if not.
To get number input.
print(check.cpf_entrada())
To get verification code input.
print(check.cpf_verificador_entrada())
To get number output.
print(check.cpf_retorno())
To get verification code output.
print(check.cpf_verificador_retorno())
Author
Phelipe Mathias
License
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
Built Distribution
Close
Hashes for brazilian_register-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c61d6f814e057e158e3bb8a49a8c29b925bf32a3daebf7b5e206f540cbcbf9a5 |
|
MD5 | f99a6a3ea286c3b5d75f5af78716ef96 |
|
BLAKE2b-256 | e1f9f6402b6b5488047d0d04c9da4deec0a94c2ab75eba592fadc0728236a233 |