@utilities.debug 
def requests_response_hook(response):
    #hooks for the requests module to add some attributes
    response.time = time() - response.request.start_time
    if hasattr(response.content,'__len__'): 
        response.size = len(response.content)
    else: 
        response.size = 0
    return response
dataset/ETHPy150Open Neohapsis/bbqsql/bbqsql/lib/requester.py/requests_response_hook/original