You can get it from the attribute of __table__your model class:
class Model(Base):
__tablename__ = 'models'
id = Column(Integer, primary_key=True)
print repr(Model.__table__)
Outputs:
Table('models', MetaData(None), Column('id', Integer(), table=<models>,
primary_key=True, nullable=False), schema=None)
source
share