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.3.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for cpf_generator-2.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfa9147dd8cbe371908adf9e902bbfc680c56cd01d5af4abe64129278dd36b19 |
|
MD5 | 7e0918b11fa2bb785d90c0ece8a906a9 |
|
BLAKE2b-256 | d7e77a5e3526acd677b789e34037d8c7cbe871d4f6852df6c729652e49180865 |