toucan_data_sdk/sdk.py
def read_from_cache(self, domains=None):
        """
        Returns:
            dict: Dict[str, DataFrame]
        """
        logger.info(f'Reading data from cache ({self.EXTRACTION_CACHE_PATH})')
        if domains is not None and isinstance(domains, list):
            dfs = {domain: self.read_entry(domain) for domain in domains}
        else:
            dfs = {name: self.read_entry(name)
                   for name in os.listdir(self.EXTRACTION_CACHE_PATH)}
        return dfs
def read_from_cache(self, domains=None):
        """
        Returns:
            dict: Dict[str, DataFrame]
        """
        logger.info(f'Reading data from cache ({self.EXTRACTION_CACHE_PATH})')
        if domains is not None and isinstance(domains, list):
            dfs = {domain: self.read_entry(domain) for domain in domains}
        else:
            dfs = {name: self.read_entry(name)
                   for name in os.listdir(self.EXTRACTION_CACHE_PATH)}
        return dfs
def read_from_cache ( self , domains = None ) : logger . info ( f'Reading data from cache ({self.EXTRACTION_CACHE_PATH})' ) if domains is not None and isinstance ( domains , list ) : dfs = { domain : self . read_entry ( domain ) for domain in domains } else : dfs = { name : self . read_entry ( name ) for name in os . listdir ( self . EXTRACTION_CACHE_PATH ) } return dfs
Returns:
            dict: Dict[str, DataFrame]
Returns : dict : Dict [ str DataFrame ]