Category : google-bucket

I have to read google bucket files which are in xlsx format. The file structure in the bucket look like bucket_name folder_name_1 file_name_1 folder_name_2 folder_name_3 file_name_3 The python snippet looks like def main(): storage_client = storage.Client.from_service_account_json( Constants.GCP_CRENDENTIALS) bucket = storage_client.bucket(Constants.GCP_BUCKET_NAME) blob = bucket.blob(folder_name_2 + ‘/’ + Constants.GCP_FILE_NAME) data_bytes = blob.download_as_bytes() df = pd.read_excel(data_bytes, engine=’openpyxl’) print(df) ..

Read more

I’ve set the permissions to public for the object. If i copy the link into the browser then the image will automatically download (I would like to stop that) and then the following error is shown. Any tips / idea how to get my picture to display? The following statement at the end of uploading ..

Read more