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.0.tar.gz
(2.2 kB
view hashes)
Built Distribution
Close
Hashes for cpf_generator-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | acc3a94b807d72397ae1dca19cfbd7855781ccab65d0655605e34f4624669f09 |
|
MD5 | 7169af586e4a96de17eaca037272ef46 |
|
BLAKE2b-256 | 6b5cb47e57603fdbaef0cd854c5ccb5f46509ad99e3dd41ea64b9dc898e59228 |