Skip to main content

This simple project only serves as an object of study and/or software testing, do not use it for fraudulent activities.

Project description

What is make_a_fake_brazilian A.K.A mkfbr? Where is he going? Where does he come from? What does it feed on?

Well, this simple project was born out of a particular need in personal projects. Specifically I needed some information from Brazilians, such as: Name, Address, CPF, CPNJ, Age, among other things. Since then, I decided to make my job easier with a quick and simple to use module.

Note: This project only serves as an object of study and/or software testing, do not use it for fraudulent activities.

Quick note about missing states in the database

The database for this project was built based on data provided by CEP ABERTO, which in turn did not include (when >darkmathew< performed the scraping) the following states: Maranhão, Rio de Janeiro, Rio Grande do Norte, Roraima and Tocantins. I apologize to you if you need data generated from any of these regions of Brazil. If you get this information and want to share it with the project, please submit a properly tested and verified PR that includes cities and zip codes for those states.

Install from PyPi

pip install mkfbr

Simple Usage

from mkfbr import Make_A_Fake_Brazilian

mkfbr = Make_A_Fake_Brazilian()

brazilian = mkfbr.get_brazilian()

print(brazilian)

Output example:


{
    'name': 'Egídia Angelles',
    'age': 47,
    'birthday': '26/11/1975',
    'cpf': '80051493608',
    'rg': '136076262',
    'cnpj': '',
    'address': 'Rua Expedito Pereira de Souza 971',
    'state': 'Acre',
    'state_abbreviation': 'AC',
    'city': 'Bujari',
    'bairro': 'Centro',
    'logradouro': ''
}

Generate Female Person

from mkfbr import Make_A_Fake_Brazilian

  
mkfbr = Make_A_Fake_Brazilian(

    gender_name='F',

)

brazilian = mkfbr.get_brazilian()

  
print(brazilian)

Generate Male Person

from mkfbr import Make_A_Fake_Brazilian


mkfbr = Make_A_Fake_Brazilian(

    gender_name='M',

)

brazilian = mkfbr.get_brazilian()

  
print(brazilian)

Generate CPNJ / RG / CPF with pontuation

Note: To generate CNPJ the gen_cnpj argument needs to be true.

from mkfbr import Make_A_Fake_Brazilian

  

mkfbr = Make_A_Fake_Brazilian(

    cpf_mode='points',

    rg_mode='points',

    gen_cnpj=True,

    cnpj_mode='points',

)

brazilian = mkfbr.get_brazilian()

print(brazilian)

Output example:


{
    'name': 'Eros de Assuncao',

    'age': 66,

    'birthday': '15/01/1956',

    'cpf': '058.592.229-20',

    'rg': '57.137.420-4',

    'cnpj': '60.294.437/0001-07',

    'address': 'Avenida André Pereira Lobato, s/n',

    'state': 'Piauí',

    'state_abbreviation': 'PI',

    'city': 'Sebastião Barros',

    'bairro': 'Centro',

    'logradouro': ''

}

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

mkfbr-0.1.6.tar.gz (17.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mkfbr-0.1.6-py3-none-any.whl (17.3 MB view details)

Uploaded Python 3

File details

Details for the file mkfbr-0.1.6.tar.gz.

File metadata

  • Download URL: mkfbr-0.1.6.tar.gz
  • Upload date:
  • Size: 17.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.0 Windows/10

File hashes

Hashes for mkfbr-0.1.6.tar.gz
Algorithm Hash digest
SHA256 02ac0a33d51c5e812c6bf161d9b794a348dfb772f9504d6326708f75161d7ee0
MD5 dc935e1a4cf1e0bc2a234b76b25a16cd
BLAKE2b-256 1c4d2f674b6b09619b215bb9c41eb92f4c7f2d00f03089127f76f26aca0105b3

See more details on using hashes here.

File details

Details for the file mkfbr-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: mkfbr-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 17.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.0 Windows/10

File hashes

Hashes for mkfbr-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 3d7cf722ce53bec725c3b60a494fa76b2eeee59074b35c0ee89e732d0763f413
MD5 7616b6a69e31f5961ced27fdf5c06a4c
BLAKE2b-256 f630309b713a6997752bf9f928b8491e67eeebacfa9a873ad76b0ccb65a50822

See more details on using hashes here.

Supported by

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