tiingo/api.py
def dict_to_object(item, object_name):
    """Converts a python dict to a namedtuple, saving memory."""
    fields = item.keys()
    values = item.values()
    return json.loads(json.dumps(item),
                      object_hook=lambda d:
                      namedtuple(object_name, fields)(*values))
def dict_to_object(item, object_name):
    """Converts a python dict to a namedtuple, saving memory."""
    fields = item.keys()
    values = item.values()
    return json.loads(json.dumps(item),
                      object_hook=lambda d:
                      namedtuple(object_name, fields)(*values))
def dict_to_object ( item , object_name ) : fields = item . keys ( ) values = item . values ( ) return json . loads ( json . dumps ( item ) , object_hook = lambda d : namedtuple ( object_name , fields ) ( * values ) )
Converts a python dict to a namedtuple, saving memory.
Converts a python dict to a namedtuple saving memory .