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.3.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for cpf_generator-2.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fea2080f2649081591ade6b66dad764f7d01eb483fd1b20ff8a429d7b5e766c |
|
MD5 | 29f1a67f6615953dec0701b89a40f080 |
|
BLAKE2b-256 | 9cace1d4c9d679f74ba7f3c4f73dc21667240e285b87cd82fccf4817a49985bf |