def iterdict(self):
        """Iterate over the resource in dict records"""
        from collections import OrderedDict

        headers = None

        for row in self:

            if headers is None:
                headers = row
                continue

            yield OrderedDict(zip(headers, row))
def iterdict ( self ) : from collections import OrderedDict headers = None for row in self : if headers is None : headers = row continue yield OrderedDict ( zip ( headers , row ) )
Iterate over the resource in dict records