A simple script to manipulate and validate CPF
Project description
Simple CPF
A simple package to validate and format the CPF - Brazil Identification Card.
Installation
pip install simple-cpf
How to use
import simple_cpf.simple_cpf import CPF
# validating a cpf
CPF.is_valid('117.762.459-11') # True
CPF.is_valid('117.762.459-19') # False
# generating a fake cpf
CPF.fake() # '917.350.558-75'
# formatting a valid cpf
CPF.formatted('10757246354') # '107.572.463-54'
# in case of invalid cpf, it will return:
# 'Enter a valid CPF.'
Made by:
cesargodoi - https://github.com/cesargodoi/simple_cpf
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
simple_cpf-0.1.4.tar.gz
(2.0 kB
view hashes)
Built Distribution
Close
Hashes for simple_cpf-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3610c1c3a5df106093454c193e65e42f162007975176c3fe81366ab6705ae7a |
|
MD5 | 1e717bd578b12ecfd8e15eaa712996ac |
|
BLAKE2b-256 | 724855729d6c2fb4bfa9df40eda806b898cbd2166c52266bcbb51802a1497276 |