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.format(cpf) # Will format the CPF to be printed in some place # EX: 460.649.272-40
CPF.unformat(formatedCPF) # Works with formated CPF # EX: 46064927240
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.1.0.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for cpf_generator-2.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7957a3103028df88d66c343751cfd6cb2dbbbb3337076da2a27fd16fc3cfc44 |
|
MD5 | dcadb4d5caed7bd257ed4fd74bb03a77 |
|
BLAKE2b-256 | b42e4bdebe4cae4d30bbba5ef2d7d6f502c84dd8aab592ea50bf28169741dece |