import psycopg2 class DbManager(object): def __init__(self,db_uri): self.db_uri=db_uri self.conn=psycopg2.connect(db_uri)