Skip to content

Instantly share code, notes, and snippets.

View goodgoodwish's full-sized avatar

Charlie Yi Zhu 木匠 goodgoodwish

View GitHub Profile
@goodgoodwish
goodgoodwish / db.py
Last active April 13, 2018 18:38
knowledge points I learned in my first Python project.
import psycopg2 # import PostgreSQL database interface library.
import traceback
import sys
# Add PYTHONPATH, then we may import all the objects below this folder.
sys.path.insert(0,"/Users/charliezhu/git/bi-cloud/etl")
# import tool to parse .ini configuration file.
# See below link for the explaination and examples:
# http://www.postgresqltutorial.com/postgresql-python/connect/