cpf-and-cnpj-generator

This Python package provides functions to generate valid CPF (Cadastro de Pessoas Físicas) and CNPJ (Cadastro Nacional da Pessoa Jurídica) numbers for Brazil.

See githubSee Pypi page

Instalation

pip install cpf-and-cnpj-generator

Usage

Here is an example of how to use the functions in this package:

from cpf_and_cnpj_generator import generate_cnpj, generate_cpf
# Generate a valid CNPJ
cnpj = generate_cnpj()
print(cnpj)

# Generate a valid CPF
cpf = generate_cpf()
print(cpf)
Voltar