manishbhatias / csvtosf

Upload csv files to snowflake using snowflake python connector

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

csvtosf

Read a CSV file and push it into a snowflake database using snowflake python connector

Installing

Download / clone the repository, setup a virtualenv ( recommended to avoid package dependency conflicts ) and install the requirements using pip

git clone git@github.com:manishbhatias/csvtosf.git
cd csvtosf
virtualenv .
pip install -r requirements.txt

Usage

Optional

  • Create a snowflake account
  • Create a new database and warehouse
  • Create a new role and grant privileges to write to the database
  • Create a new user and assign role to it

Copy the following credentials from your account for use

  • account - this is a combination of org-id and account-id
  • user
  • password
  • warehouse
  • database
  • schema
  • Run the program and follow the instructions
python csvtosf

To do

  • Improve validations error handling
  • Refactor module and cli code into separate classes

Built with

About

Upload csv files to snowflake using snowflake python connector

License:The Unlicense


Languages

Language:Python 100.0%