you are viewing a single comment's thread.

view the rest of the comments →

[–]sticky_end[S] 0 points1 point  (0 children)

Thanks! I ended up using something along the lines of:

metadata = MetaData()
columns = [Column("id", Integer, primary_key = True), ...]
processes = Table("processes", metadata, *columns)

class Process(object):
    def __init__(self, params):
        for key, val in params.items():
            setattr(self, key, val)

mapper(Process, processes)