def _get(self, uri, options):
        """
        Quick and dirty wrapper around the requests object to do
        some simple data catching

        :params uri: a string, the uri you want to request
        :params options: a dict, the list of parameters you want to use
        """
        url = "http://%s/%s" % (self.host, uri)
        r = requests.get(url, params=options)
        if r.status_code == 200:
            data = r.json()
            return data['results']
        else:
            # Throws anything not 200 error
            r.raise_for_status()
def _get ( self , uri , options ) : url = "http://%s/%s" % ( self . host , uri ) r = requests . get ( url , params = options ) if r . status_code == 200 : data = r . json ( ) return data [ 'results' ] else : r . raise_for_status ( )
Quick and dirty wrapper around the requests object to do
        some simple data catching

        :params uri: a string, the uri you want to request
        :params options: a dict, the list of parameters you want to use