cloud_modules_aws/utils.py
def read_json_metadata_from_s3(self, json_file) -> dict:
        """
        reads json_file from s3 storage
        and return dict object
        """
        try:

            if self.metadata_path is not None:
                json_file_path = self.metadata_path + "/" + json_file

            json_buffer = self.read_from_s3(
                self.metadata_bucket, json_file_path)
            return self.get_dict_from_json(json_buffer)
        except Exception as err:
            logger.error("%s: %s", type(err), err)
        return {}

        reads json_file from s3 storage
        and return dict object
        
reads json_file from s3 storage
and return dict object
reads json_file from s3 storage and return dict object
def read_json_metadata_from_s3(self, json_file) -> dict:
        try:
            if self.metadata_path is not None:
                json_file_path = self.metadata_path + "/" + json_file
            json_buffer = self.read_from_s3(
                self.metadata_bucket, json_file_path)
            return self.get_dict_from_json(json_buffer)
        except Exception as err:
            logger.error("%s: %s", type(err), err)
        return {}
def read_json_metadata_from_s3 ( self , json_file ) -> dict : try : if self . metadata_path is not None : json_file_path = self . metadata_path + "/" + json_file json_buffer = self . read_from_s3 ( self . metadata_bucket , json_file_path ) return self . get_dict_from_json ( json_buffer ) except Exception as err : logger . error ( "%s: %s" , type ( err ) , err ) return { }
reads json_file from s3 storage
and return dict object
reads json_file from s3 storage and return dict object
"""
        reads json_file from s3 storage
        and return dict object
        """
self
json_file