def raw_dict_factory(cursor, row):
        """ Sqlite callback accepting the cursor and the original row as a tuple.

        Simple return of JSON safe types, including raw read hex strings.

        Args:
            cursor (sqlite cursor):  Original cursory
            row (sqlite row tuple): Original row.

        Returns:
            dict: modified row.
        """
        d = {}
        for idx, col in enumerate(cursor.description):
            val = row[idx]
            name = col[0]
            if name == Field.Time_Stamp or name == Field.Meter_Address:
                d[name] = str(val)
                continue
            if name == "Raw_A" or name == "Raw_B":
                d[name] = str(val)
                continue
        return d
def raw_dict_factory(cursor, row):
        """ Sqlite callback accepting the cursor and the original row as a tuple.

        Simple return of JSON safe types, including raw read hex strings.

        Args:
            cursor (sqlite cursor):  Original cursory
            row (sqlite row tuple): Original row.

        Returns:
            dict: modified row.
        """
        d = {}
        for idx, col in enumerate(cursor.description):
            val = row[idx]
            name = col[0]
            if name == Field.Time_Stamp or name == Field.Meter_Address:
                d[name] = str(val)
                continue
            if name == "Raw_A" or name == "Raw_B":
                d[name] = str(val)
                continue
        return d
def raw_dict_factory ( cursor , row ) : d = { } for idx , col in enumerate ( cursor . description ) : val = row [ idx ] name = col [ 0 ] if name == Field . Time_Stamp or name == Field . Meter_Address : d [ name ] = str ( val ) continue if name == "Raw_A" or name == "Raw_B" : d [ name ] = str ( val ) continue return d
Sqlite callback accepting the cursor and the original row as a tuple.

        Simple return of JSON safe types, including raw read hex strings.

        Args:
            cursor (sqlite cursor):  Original cursory
            row (sqlite row tuple): Original row.

        Returns:
            dict: modified row.
Sqlite callback accepting the cursor and the original row as a tuple .