I am writing on a small Python Web Application Project in combination
I was also in need of serializing SQLAlchemy DB Models (declarative_base ones), so first I wrote an instance method
as_dict() and caught all self.__table__.columns and converted them into
a dict with the column name as key.
Sadly, what I didn’t catch, that relational attributes are not belonging to the __table__.column space.
I should have consulted Google first, before I writing my own code.