import requests # first time is uncached: print requests.get('http://localhost:5000/api/person').json() # second time is cached: print requests.get('http://localhost:5000/api/person').json()