i havent spent time creating an "official" API for this but at this point I think its pretty stable:
from sqlalchemy.orm.session import attribute_manager for prop in attribute_manager.managed_attributes(the_mapped_object.__class__): print prop.key, prop.get(the_mapped_object, passive=True) "prop" is an instance of sqlalchemy.orm.attributes.InstrumentedAttribute, "attribute_manager" is an instance of sqlalchemy.orm.attributes.AttributeManager. "passive" means dont fire off lazy loaders (thats why we are using prop.get(), otherwise you could just say getattr(object, key) ). --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---