Skip to main content

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

Project description

cpf-and-cnpj-generator

PyPI version License: MIT PyPI downloads

Feel free to find bugs and report them to me. Your feedback is highly appreciated. Hugs from Gabriel Logan!

Documentation

https://gabriel-logan.github.io/Gerador-CPF-e-CNPJ-valido/py

Installation

pip install cpf-and-cnpj-generator

Avaliable Functions

  • generate_cnpj: CNPJ generation.
  • generate_cpf: CPF generation.

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)

Feel free to explore the various functions and experiment with different inputs to understand their behavior. If you encounter any issues or have suggestions, don't hesitate to reach out to me. Your feedback is valuable and helps improve the package. Happy coding!

By - Gabriel Logan

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cpf_and_cnpj_generator-0.0.2.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

cpf_and_cnpj_generator-0.0.2-py3-none-any.whl (5.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page