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 details)
Built Distribution
File details
Details for the file cpf_generator-2.1.4.tar.gz
.
File metadata
- Download URL: cpf_generator-2.1.4.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aab5188453f1c829750cc85fdbe35680b85d0b9bd92bb9f0811c4788efc8cfaf |
|
MD5 | d4a1d7c7762748667e2b6022a4fe4911 |
|
BLAKE2b-256 | 633340159dbd7383d273c2df34b765d65defb14ee0c213dcec8b557a563d714a |
File details
Details for the file cpf_generator-2.1.4-py3-none-any.whl
.
File metadata
- Download URL: cpf_generator-2.1.4-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47c61348a6eed570893d03ccfd04e5fa276d9bc08d360c29d0878c05dbfa1d08 |
|
MD5 | 323f0b5d234ac95fbdc1ed9027cb5a63 |
|
BLAKE2b-256 | 5276e62c908615dc5dde68538084bd04c97d7e180cc642d30636d2fca9a60b6c |