Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@WatchMeCalculate
WatchMeCalculate / database.py
Created October 14, 2015 18:43
Sqlalchemy w/sqllite file
"""
Database Instance class
handles loading, and creating the database,
creates sessions for pcf to interact with database
"""
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from contextlib import contextmanager
from table_def import BASE
import os.path