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.2.tar.gz
(2.4 kB
view hashes)
Built Distribution
Close
Hashes for cpf_generator-2.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43a53cff9b0c90255b664786c1296ca2c5a8cabe34e02874cc5a98477586b921 |
|
MD5 | 7a06642a26968ea9d085524ddeb14f29 |
|
BLAKE2b-256 | b2607238d6c46f529b73502e0108167b8d8f5cfdca33d4b5007790b57f6ceacb |