def from_object(orm_class, engine_or_session, limit=None, **kwargs):
ses, auto_close = ensure_session(engine_or_session)<EOL>query = ses.query(orm_class)<EOL>if limit is not None:<EOL><INDENT>query = query.limit(limit)<EOL><DEDENT>result_proxy = execute_query_return_result_proxy(query)<EOL>if auto_close:<EOL><INDENT>ses.close()<EOL><DEDENT>return from_db_cursor(result_proxy.cursor)<EOL>
Select data from the table defined by a ORM class, and put into prettytable

:param orm_class: an orm class inherit from
    ``sqlalchemy.ext.declarative.declarative_base()``

:type engine_or_session: Union[Engine, Session]
:param engine_or_session: the engine or session used to execute the query.

:type limit: int
:param limit: int, limit rows to return.

:rtype: PrettyTable

**中文文档**

将数据对象的数据放入 PrettyTable 中.

常用于快速预览某个对象背后的数据.