Skip to main content

CPF-Generator

License PyPI PyPI - Python Version Downloads

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

Release files for cpf-generator 2.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cpf-generator 2.1.4
File Size Uploaded
cpf_generator-2.1.4.tar.gz 3.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cpf-generator 2.1.4
File Interpreter ABI Platform
cpf_generator-2.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 7.0 kB

Release files / cpf_generator-2.1.4.tar.gz

Download URL cpf_generator-2.1.4.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
aab5188453f1c829750cc85fdbe35680b85d0b9bd92bb9f0811c4788efc8cfaf
BLAKE2b-256 checksum
How to use checksums
633340159dbd7383d273c2df34b765d65defb14ee0c213dcec8b557a563d714a
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / cpf_generator-2.1.4-py3-none-any.whl

Download URL cpf_generator-2.1.4-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
47c61348a6eed570893d03ccfd04e5fa276d9bc08d360c29d0878c05dbfa1d08
BLAKE2b-256 checksum
How to use checksums
5276e62c908615dc5dde68538084bd04c97d7e180cc642d30636d2fca9a60b6c
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

2.1.4 This release

2 release files

2.1.3

2 release files

2.1.2

2 release files

2.1.1

2 release files

2.1.0

2 release files

2.0.3

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page