--- title: Welcome to alphalib keywords: fastai sidebar: home_sidebar summary: "A library for your daily data engineering and data science routines." description: "A library for your daily data engineering and data science routines." nb_path: "index.ipynb" ---
This file will become your README and also the index of your documentation.
pip install alphalib
excel_source = file_sources.get(FileSource.Excel, file_path="data/accounts.xlsx")
config = {
'host': 'localhost',
'port': 5432,
'db': 'testdb',
'user': 'user1',
'password': 'userpwd'
}
pgsql_target = db_targets.get(DatabaseTarget.PostgreSQL, **config)
ingest(excel_source, pgsql_target, 'accounts')
csv_source = file_sources.get(FileSource.CSV, file_path="data/accounts.csv")
config = {
'host': 'localhost',
'port': 3306,
'db': 'testdb',
'user': 'user1',
'password': 'userpwd'
}
mysql_target = db_targets.get(DatabaseTarget.MySQL, **config)
ingest(csv_source, mysql_target, 'accounts')