title: How to use a Sqlalchemy Model out of a session context?
body: <p>In Sqlalchemy, a model instance is constantly connected to a session. If the session is ended, I won't be able to read the object. But in many cases, I want to close the session early to return resources, meanwhile still using the model instance.</p>
  
  <p>Currently, I am reading all the values out and put them into a <strong>dict</strong>. But I am looking for a easier and automatic way.</p>