Found an example using cx_Oracle, this example shows all the information of Cursor.description.
Cursor.description
import cx_Oracle from pprint import pprint connec
You can use list comprehension as an alternative to get the column names:
col_names = [row[0] for row in cursor.description]
Since cursor.description returns a list of 7-element tuples you can get the 0th element which is a column name.