'Columns can be retrieved by field name, e.g., Datasheet.date.'

def __getattr__(self, k):

    if (k in self.__dict__):
        return self.__dict__[k]
    for (i, f) in enumerate((f[0] for f in (self.__dict__['fields'] or []))):
        if (f == k):
            return self.__dict__['_columns'][i]
    raise AttributeError(("'Datasheet'    object    has    no    attribute    '%s'" % k))
