class SQLAsDataFrames:

    def __init__(self, engine):
        self.__dict__ = db_to_frames_dict(engine)

def __getitem__(self, key):
    return self.__dict__[key]
Python class to convert all tables in a database to pandas dataframes