perceval/backends/core/dockerhub.py
def fetch_items(self, category, **kwargs):
        """Fetch the Dockher Hub items

        :param category: the category of items to fetch
        :param kwargs: backend arguments

        :returns: a generator of items
        """
        logger.info("Fetching data from '%s' repository of '%s' owner",
                    self.repository, self.owner)

        raw_data = self.client.repository(self.owner, self.repository)
        fetched_on = datetime_utcnow().timestamp()

        data = self.parse_json(raw_data)
        data['fetched_on'] = fetched_on
        yield data

        logger.info("Fetch process completed")
def fetch_items(self, category, **kwargs):
        logger.info("Fetching data from '%s' repository of '%s' owner",
                    self.repository, self.owner)

        raw_data = self.client.repository(self.owner, self.repository)
        fetched_on = datetime_utcnow().timestamp()

        data = self.parse_json(raw_data)
        data['fetched_on'] = fetched_on
        yield data

        logger.info("Fetch process completed")
def fetch_items ( self , category , * * kwargs ) : logger . info ( "Fetching data from '%s' repository of '%s' owner" , self . repository , self . owner ) raw_data = self . client . repository ( self . owner , self . repository ) fetched_on = datetime_utcnow ( ) . timestamp ( ) data = self . parse_json ( raw_data ) data [ 'fetched_on' ] = fetched_on yield data logger . info ( "Fetch process completed" )
Fetch the Dockher Hub items

        :param category: the category of items to fetch
        :param kwargs: backend arguments

        :returns: a generator of items
Fetch the Dockher Hub items