How to get the column with index set in a table by flask sqlalchemy

suppose there is a table A whose fields are roughly as follows:

< table > < thead > < tr > < th > column < / th > < th > index < / th > < / tr > < / thead > < tbody > < tr > < td > id < / td > < td > True < / td > < / tr > < tr > < td > name < / td > < td > True < / td > < / tr > < tr > < td > phone < / td > < td > False < / td > < / tr > < tr > < td > address < / td > < td > False < / td > < / tr > < / tbody > < / table >

then I want to get what all the indexed column, should do.

-sharp 
def get_index(table):
  return table_index_cloumn

-sharp print [id, name]
print get_index(A)

Please help with sqlalchemy, thx

add
should be a problem with my description, so here I would like to give a detailed description of what I want to ask

-sharp mysql
-sharp sqlalchemy
-sharp model class Model: ........
model.selectable.froms[0].target_table.columns.keys()
-sharp modelcolumn
-sharp mysqlsql
-sharp google
Mar.03,2021

this has nothing to do with sqlalchemy, but is related to mysql

.
SHOW INDEX FROM mytable FROM mydb


MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b2b330-2ba80.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b2b330-2ba80.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?