Skip to main content

How Fake Accounts

Pacote python criado para gerar contas fakes, para o primeiro desafio do bootcamp de engenharia de dados da How. O pacote é a implementação de um provider customizado do Faker, conforme sugerido em https://faker.readthedocs.io/en/master/#how-to-create-a-provider.

As contas feitas simulam o cadastro de usuários em um aplicativo e contém as seguintes informações para cada usuário cadastrado:

  • nome
  • email
  • número de telefone
  • cpf
  • data de nascimento
  • endereço
  • emprego

How to install

pip install how-fake-accounts

How to use

We have mainly two ways to use the package:

  • as a package itself, to be imported in python scripts
  • as a command line interface

Package Interface

import os
from datetime import datetime
from how_fake_accounts import fake

# generate 10 random accounts
accounts = fake.generate_accounts(10)
print(accounts)

filename = datetime.now().strftime('%Y-%m-%d-%H-%M-%S') + '-accounts.json'
fake.save_into_s3(
    accounts,
    bucket='missy-aulas-how',
    key='bronze/desafio-01/' + filename,
    aws_access_key_id=os.getenv('AWS_ID'),
    aws_secret_access_key=os.getenv('AWS_KEY')
)

CLI Interface

To generate 50 accounts, just type into terminal:

how_fake --n-accounts 50

or

python -m how_fake --n-accounts 50

for help, just type:

how_fake --help

Metadata

Release files for how-fake-accounts 1.2.0

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

Source distribution (sdist)

Source distribution for how-fake-accounts 1.2.0
File Size Uploaded
how_fake_accounts-1.2.0.tar.gz 3.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for how-fake-accounts 1.2.0
File Interpreter ABI Platform
how_fake_accounts-1.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.9 kB

Release files / how_fake_accounts-1.2.0.tar.gz

Download URL how_fake_accounts-1.2.0.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
da81177c0f4a23147512f99afb439b87ac70e15946da94e627aa831282b795f4
BLAKE2b-256 checksum
How to use checksums
944601b348c5434ada4e01078d333ce3b076aab26e5321b99128c496efa5f42f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / how_fake_accounts-1.2.0-py3-none-any.whl

Download URL how_fake_accounts-1.2.0-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2f32d7e4dd00bb4af73874720b4b00a404807ad3f0f4f9e75d60c210d5216136
BLAKE2b-256 checksum
How to use checksums
71da3ac520cb80a0fc3b58f46dfa6c004f11f02c74a9dffd2d0ba8a4c14d88bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.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