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.4.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for cpf_generator-2.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47c61348a6eed570893d03ccfd04e5fa276d9bc08d360c29d0878c05dbfa1d08 |
|
MD5 | 323f0b5d234ac95fbdc1ed9027cb5a63 |
|
BLAKE2b-256 | 5276e62c908615dc5dde68538084bd04c97d7e180cc642d30636d2fca9a60b6c |