def table_attributes(curs, table_name):
    curs.execute('SELECT * FROM pgpartitioner.get_table_attributes(%s);', (table_name,))
    atts = tuple([res[0] for res in curs.fetchall()])
    return atts
Returns a tuple of the given table's attributes
dataset/ETHPy150Open mage2k/pg_partitioner/pg_partitioner/sql_util.py/table_attributes