Skip to content

Instantly share code, notes, and snippets.

View bmillemathias's full-sized avatar
💭
I may be slow to respond.

Baptiste Mille-Mathias bmillemathias

💭
I may be slow to respond.
View GitHub Profile
@bmillemathias
bmillemathias / db_feeder_with_faker.py
Last active June 14, 2024 06:46
An example how to use Faker python library to create fake data and inject them in a mysql database
#!/usr/bin/env python
# an example how to use Faker to create fake data and inject them
# in a mysql database
import time
import os
import mysql.connector
from mysql.connector import Error
from faker import Faker