Skip to main content

No project description provided

Project description

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

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

how_fake_accounts-1.2.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

how_fake_accounts-1.2.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file how_fake_accounts-1.2.0.tar.gz.

File metadata

  • Download URL: how_fake_accounts-1.2.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for how_fake_accounts-1.2.0.tar.gz
Algorithm Hash digest
SHA256 da81177c0f4a23147512f99afb439b87ac70e15946da94e627aa831282b795f4
MD5 ad54ab388455909b016140dc5f63a6ea
BLAKE2b-256 944601b348c5434ada4e01078d333ce3b076aab26e5321b99128c496efa5f42f

See more details on using hashes here.

Provenance

File details

Details for the file how_fake_accounts-1.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for how_fake_accounts-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2f32d7e4dd00bb4af73874720b4b00a404807ad3f0f4f9e75d60c210d5216136
MD5 f098e6d9dcf43cb6bf95564c01957053
BLAKE2b-256 71da3ac520cb80a0fc3b58f46dfa6c004f11f02c74a9dffd2d0ba8a4c14d88bf

See more details on using hashes here.

Provenance

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