<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_attributes(**kwargs):
 """ Get all attributes """


    attrs = db.DBSession.query(Attr).order_by(Attr.name).all()

    return attrs