cloud_modules_azure/utils.py
def read_from_blob(self, file_name) -> io.BytesIO:
        """
        reads the file_name from blob
        and returns ByteIO
        """
        try:
            # Get a client to interact with the specified blob.
            blob_client = self.blob_service_client_for_metadata.get_blob_client(
                container=self.connect_info["metadata_container_name"],
                blob=file_name
            )
            # Downloads a blob to the StorageStreamDownloader
            download_stream = blob_client.download_blob()
            # to read all the content to bytesIO
            return self.get_bytes_io_buffer(download_stream.readall())

        except Exception as err:
            logger.error("%s: %s", type(err), err)
        return None

        reads the file_name from blob
        and returns ByteIO
        
reads the file_name from blob
and returns ByteIO
reads the file_name from blob and returns ByteIO
def read_from_blob(self, file_name) -> io.BytesIO:
        try:
            blob_client = self.blob_service_client_for_metadata.get_blob_client(
                container=self.connect_info["metadata_container_name"],
                blob=file_name
            )
            download_stream = blob_client.download_blob()
            return self.get_bytes_io_buffer(download_stream.readall())
        except Exception as err:
            logger.error("%s: %s", type(err), err)
        return None
def read_from_blob ( self , file_name ) -> io . BytesIO : try : blob_client = self . blob_service_client_for_metadata . get_blob_client ( container = self . connect_info [ "metadata_container_name" ] , blob = file_name ) download_stream = blob_client . download_blob ( ) return self . get_bytes_io_buffer ( download_stream . readall ( ) ) except Exception as err : logger . error ( "%s: %s" , type ( err ) , err ) return None
reads the file_name from blob
and returns ByteIO
reads the file_name from blob and returns ByteIO
"""
        reads the file_name from blob
        and returns ByteIO
        """ # Get a client to interact with the specified blob. # Downloads a blob to the StorageStreamDownloader # to read all the content to bytesIO
self
file_name