import ibm_db import ibm_db_dbi ibm_db_conn = ibm_db.connect('local', 'db2inst1', 'Gcbs12ma') conn = ibm_db_dbi.Connection(ibm_db_conn) conn.tables('SYSCAT', '%')