Library to validate brazilians documents, email, birthDate and others
Project description
About this package
This package is available on https://pypi.org/project/brdocvalidator/ , you can easily validate brazilians documents like CPF and CNPJ. Also some functions to help validate email, birth date, and new functionalities will appear soo
Code on github https://github.com/rafaelscone/brdocvalidator
How to use
pip3 install brdocvalidator
In your python file
import brdocvalidator
cpf = '111.111.111-11'
cnpj = '11.111.111/1111-11'
birthDay = "26/07/2010"
my_password ='JtR55$$_'
my_email = "email@email.com"
# return date format %d-%m-%Y or False
print(brdocvalidator.check_birth_date(birthDay))
# Return just CPF number or False
# check_doc check CPF or CNPJ
print(brdocvalidator.check_doc(cpf))
print(brdocvalidator.check_cpf(cpf))
# Return just CNPJ number or False
print(brdocvalidator.check_doc(cnpj))
print(brdocvalidator.check_cnpj(cnpj))
# Encode your password
encoded_password= brdocvalidator.encodePass(my_password)
print(encoded_password)
# Check if password match
test = brdocvalidator.comparePass(encoded_password,my_password)
print("Result pass:", test)
# Check email
myemail = brdocvalidator.check_email(my_email)
print(myemail)
Feel free to send me news, bugs and suggestions to this package
Rafael Schneider - rafaelscone
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
brdocvalidator-0.0.5.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for brdocvalidator-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58a210eb0f7da18ae9006cd47377a5a13f0d0581373aea83fa64ad0657e6935a |
|
MD5 | cf6207bb5470580ad7a80547d27ed69c |
|
BLAKE2b-256 | b2907b2ef2b5a44f86f198e74343cb90ea2148f33e4876b8dd7c1c482665cfc6 |