Metadata-Version: 2.2
Name: fake_data_to_database
Version: 1.1
Summary: A Python library to generate fake data and insert it into databases.
Home-page: https://github.com/felipesbreve/fake_data_to_database
Author: Felipe Breve
Author-email: brevefelipe@gmail.com
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: faker
Requires-Dist: psycopg2-binary
Dynamic: author
Dynamic: author-email
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: requires-dist
Dynamic: summary

# Fake Data To Database

**Fake Data To Database** is a Python library designed to generate fake data and insert it into databases.

## Features
- Generate realistic fake data using `Faker`
- Insert data into:
  - PostgreSQL
- Easy-to-use interface for bulk data insertion

## Installation

You can install the library using pip:

```bash
pip install fake-data-to-database
```

## Exemple of use
You can use the lib as the exemple:

```python
import fake_data_to_database as fdg

db_config_postgres = {
    "db": "postgres",
    "host": "localhost",
    "port": 5432,
    "database": "db",
    "user": "user",
    "password": "password",
}

fields = {
    "name": {"type": "varchar", "nullable": False},
    "age": {"type": "int", "nullable": False},
    "email": {"type": "varchar", "nullable": True},
    "cidade": {"type": "varchar", "nullable": False},
}

fdg = fdg.FakeDataGenerator(
    db_config=db_config_postgres,
    schema="public",
    table="teste",
    fields_config=fields
)

fdg.generate_and_insert_data(num_records=10)

```
