def is_orm_value(obj):
 return isinstance(obj, (sqlalchemy.orm.attributes.InstrumentedAttribute, sqlalchemy.sql.expression.ColumnElement))

def is_orm_value ( obj ) : return isinstance ( obj , ( sqlalchemy . orm . attributes . InstrumentedAttribute , sqlalchemy . sql . expression . ColumnElement ) )
check if object is an orm field .