import sqlalchemy as sa
obj = usersModelInstance
relation_properties = [p for p in sa.orm.object_mapper(obj).iterate_properties if isinstance(p, sa.orm.properties.
    RelationshipProperty)]
Get related models in SQLAlchemy 