Generate, Validate and Format brazilian CPF
Project description
CPF-Generator
Installing
$ pip install cpf-generator
Usage
from cpf_generator import CPF
cpf = CPF.generate() # Will generate a random CPF # EX: 46064927240
formatedCpf = CPF.formater(cpf) # Will format the CPF to be printed in some place # EX: 460.649.272-40
CPF.validate(cpf) # Will return True if the CPF is valid or False if not # EX: True
CPF.validate(formatedCPF) # Works with formated CPF # EX: True
by Matheus Almeida
Work with braziian CPF easily
MIT License
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
cpf_generator-2.0.1.tar.gz
(2.2 kB
view hashes)
Built Distribution
Close
Hashes for cpf_generator-2.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a98b805ce79c075efaf86d3b1ac7d1e867609a277eed31cdd464a8c7184ed0ce |
|
MD5 | 7f7b71976dbf7466e1fcf2a8e25b5c00 |
|
BLAKE2b-256 | c0d9a8916e68d4b189ac2eb978152580cd5a252458355d8fb9ee98442a865d75 |