Is possible to mapping view with class using mapper in SqlAlchemy?

Viewed 13804

As Mentioned here I created View.

Is following possible to create view class for using with session?

v = Table('viewname', metadata, autoload=True)

class ViewName(object):
    def __init__(self, name):
       self.name = name

mapper(ViewName, v)
2 Answers
Related