""" Simple file to set up the sqlalchemy connection to database. """ from sqlalchemy import create_engine from sqlalchemy.ext.automap import automap_base # connect with sql alchemy and autoload schema URL = "sqlite+pysqlite:///dakiny.db" engine = create_engine(URL) Base = automap_base() Base.prepare(autoload_with=engine) # define the classes ElectionInformation = Base.classes.ElectionInformation CouncilMembers = Base.classes.CouncilMembers Votes = Base.classes.Votes