ndio/remote/resources.py
def list_projects(self, dataset_name):
        """
        Lists a set of projects related to a dataset.

        Arguments:
            dataset_name (str): Dataset name to search projects for

        Returns:
            dict: Projects found based on dataset query
        """
        url = self.url() + "/nd/resource/dataset/{}".format(dataset_name)\
            + "/project/"

        req = self.remote_utils.get_url(url)

        if req.status_code is not 200:
            raise RemoteDataNotFoundError('Could not find {}'.format(req.text))
        else:
            return req.json()
def list_projects(self, dataset_name):
        url = self.url() + "/nd/resource/dataset/{}".format(dataset_name)\
            + "/project/"

        req = self.remote_utils.get_url(url)

        if req.status_code is not 200:
            raise RemoteDataNotFoundError('Could not find {}'.format(req.text))
        else:
            return req.json()
def list_projects ( self , dataset_name ) : url = self . url ( ) + "/nd/resource/dataset/{}" . format ( dataset_name ) + "/project/" req = self . remote_utils . get_url ( url ) if req . status_code is not 200 : raise RemoteDataNotFoundError ( 'Could not find {}' . format ( req . text ) ) else : return req . json ( )
Lists a set of projects related to a dataset.

        Arguments:
            dataset_name (str): Dataset name to search projects for

        Returns:
            dict: Projects found based on dataset query
Lists a set of projects related to a dataset .