code: def from_everything(everything, engine, limit=None):
      
      if isinstance(everything, Table):
          return from_table(everything, engine, limit=limit)
  
      if type(everything) is DeclarativeMeta:
          return from_object(everything, engine, limit=limit)
  
      if isinstance(everything, Query):
          return from_query(everything, engine, limit=limit)
  
      if isinstance(everything, Select):
          return from_sql(everything, engine, limit=limit)
  
      if isinstance(everything, ResultProxy):
          return from_resultproxy(everything)
  
      if isinstance(everything, list):
          return from_data(everything)
docs: Construct a Prettytable from any kinds of sqlalchemy query.