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.2.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for cpf_generator-2.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed650d9b74b335a816eac3872b604e4d9bd6bc9b3e5f3bf9e5a563bd48423ad4 |
|
MD5 | 5fc17e44adf93ffdbbe77dc819177117 |
|
BLAKE2b-256 | 1db23aaaca625a62ea864679ece3b5daebd6d447905bdd5739ea3e1e13bf87ad |