How to upload files to Microsoft Azure Blob Storage with Python

Поделиться
HTML-код
  • Опубликовано: 26 окт 2024

Комментарии • 51

  • @voidemperor9372
    @voidemperor9372 3 года назад +4

    Nice video !! Keep it up.

  • @davidkerr9091
    @davidkerr9091 3 года назад +2

    Thanks mate. Very useful

  • @marvinmeinhard4711
    @marvinmeinhard4711 2 года назад

    Thanks for the video, safed my day!

  • @jackma6083
    @jackma6083 Год назад

    Great video, very helpful for me

  • @davidpearson1060
    @davidpearson1060 3 года назад +4

    Great video! I was wondering what changes I would make if I wanted to upload a pandas dataframe csv output instead of a local file?

    • @TechWithPat
      @TechWithPat  3 года назад +3

      David, If you have exported your pandas dataframe to csv files, you can upload them the same way I did in the videos.
      You can get inspiration in the following thread : stackoverflow.com/questions/62384733/using-azure-storage-blob-to-write-python-dataframe-as-csv-into-azure-blob

  • @tcskibike
    @tcskibike 2 года назад

    I am trying to do the same but I am trying to upload a parquet file. Im doing it in VSCODE with the azure.functions library, the problem is The parquet file type in the pandas library isn't avaible to me when building the output binding in the function.json file. Have you ever done this?

  • @yooncrypto9152
    @yooncrypto9152 3 года назад

    Thank you, this was really helpful and it worked!!

  • @naturelifestyle9836
    @naturelifestyle9836 3 года назад +1

    How to install the packages ....can you please explain step by step procedure like how to install packages and configuration

  • @bossmeektrill
    @bossmeektrill 2 года назад

    What do you mean by "root folder for videos and pictures" as source_folder? Is it connected to BLOB at all?

  • @invitado0712
    @invitado0712 2 года назад

    I have the following error with the module os.remove(file) : [WinError 32] The process does not have access to the file because it is in use by another process. Any solution?, by the way, excelent video!

  • @kobevierbergen1338
    @kobevierbergen1338 3 года назад +1

    How do you write the symbol of line 11 of the upload.py file?

  • @vishalsuryavanshi7548
    @vishalsuryavanshi7548 3 года назад

    i have build machine learning model and deployed on azure, but now the problem is my UI team cant send all the json input files to model through URL as it is huge in size , so our Data engineer has suggested that we should access all the files form azure blob storage and send as input to our model one by one and we should get output. All this should be in single python script the code to connect to the blob storage and directly grab all the files on blob storage and process it
    Does any one know how to do this and how we can do this in realtime in azure?. Any tutorial or link or blog will help

  • @AndresTalks
    @AndresTalks 3 года назад

    Thank you!

  • @vedantadhikari1722
    @vedantadhikari1722 2 года назад

    Module 'yaml' has no 'FullLoader' member .. Getting this error. kindly suggest

  • @developerdayiife
    @developerdayiife 2 года назад

    Hey @TechWithPat can you please tell me how i can download the single file from azure storage account using python

  • @saadahmed781
    @saadahmed781 3 года назад

    Sir, I want to save the path of the video that is uploaded in azure blob storage into my database. please guide me.

  • @silviaalpizar6361
    @silviaalpizar6361 3 года назад

    I think I'm having issues with my proxy, how can I configure it here?

  • @amritakundu3626
    @amritakundu3626 3 года назад +1

    when i run the code, the last console message i see is "Uploading files to blob storage".I dont see files getting uploaded from my local to the container i have created, can someone help?

    • @uTUBEvik96
      @uTUBEvik96 3 года назад +1

      did you find a solution? I have the same problem

    • @lucaskrein1
      @lucaskrein1 2 года назад

      @@uTUBEvik96 did u find the solution? if yes, can post here please?

  • @hazel5828
    @hazel5828 2 года назад

    I need help with downloading files from azure blob storage to my machine using python, can you please make a vid about it

  • @dsfgato
    @dsfgato 3 года назад

    Great job dude.. instead of uploading files i'd like to upload folders.. what do you think? is there any manner to do that? i've trying with c# coding but no success so i'm start thinking that's not possible..

    • @TechWithPat
      @TechWithPat  3 года назад +1

      I don't know, I never tried that.

  • @davidgorgan6010
    @davidgorgan6010 3 года назад

    Hello, I tried replicating thins and it works perfectly!
    Thank you.
    Just one question: I can't seem to remove the files. Whenever I use the following line os.remove(files) I get this error:
    PermissionError: [WinError 32] The process cannot access the file because it is being used by another process:
    Please can you advise?

  • @entertainment11378
    @entertainment11378 3 года назад +1

    Plz create video to upload/ download excel file to azure blob storages in nodejs server side in correct format excel

  • @subhamshaw1585
    @subhamshaw1585 3 года назад +1

    After uploading file i want to access that using url is it possible?

    • @TechWithPat
      @TechWithPat  3 года назад +2

      Yes, in the storage explorer in Azure Portal, you can generate a shared access signature (SAS).
      That's a URI that grants access to the file.

  • @discover_bokaro
    @discover_bokaro 2 года назад

    Hi Pat, great video, can you suggest how can we generate sas tokens using python?

  • @omersalam1461
    @omersalam1461 3 года назад

    Great one. If i want to write a video frame by frame using opencv can I do that?

    • @TechWithPat
      @TechWithPat  3 года назад

      You can write whatever you want to the blob storage.

  • @quentincharrier8267
    @quentincharrier8267 3 года назад

    great video! I installed the module azure-storage-blob and it is shown when I type "pip freeze", however when I type "from azure.storage.blob import ContainerClient" it is mentioned "ImportError: No module named 'azure'". Can you help pleaze

    • @marioyip
      @marioyip 3 года назад

      did you find a fix for this? having the same problem at the moment

    • @soniad6665
      @soniad6665 2 года назад

      me too, I am , I have the same issue as well

  • @Techfacts_Vinod_Telugu
    @Techfacts_Vinod_Telugu 3 года назад

    hi I have connected a pi camera to store the images to storage account it is storing perfectly with one of my wifi and it is not storing with other wifi or mobile hotspot what would be the problem Please try to help.

    • @TechWithPat
      @TechWithPat  3 года назад

      Vinod, unfortunately I don't know anything about programming on raspberry pi. If it's worked on one device it should worked on another one. Regards

    • @Techfacts_Vinod_Telugu
      @Techfacts_Vinod_Telugu 3 года назад

      @@TechWithPat thanks for your reply

  • @heyiamdhana
    @heyiamdhana 3 года назад

    Hi
    How can we change Container access level using python (its private now)

    • @TechWithPat
      @TechWithPat  3 года назад +1

      Access level can be changed in the Azure Portal in the container properties.

  • @sabanasulaiman3039
    @sabanasulaiman3039 3 года назад

    Hi, could you please do a video on image resizer in python with Azure blob storage and azure function?

    • @TechWithPat
      @TechWithPat  3 года назад

      Good idea, I may give it a try.

  • @bhargavg2021
    @bhargavg2021 3 года назад

    Hi TechWith Pat, Amazing video really helpful. I am getting the following error while deleting the files from sourcefolder [WinError 32] The process cannot access the file because it is being used by another process: Please suggest a fix.

    • @TechWithPat
      @TechWithPat  3 года назад +1

      You got to check what's running on your computer, the error you get is an indication that's your file is used by another program. Regards

    • @wulfheir
      @wulfheir 2 года назад +1

      If you are getting the 'being used by another process', add the line "data.close()" before you "os.remove(file)".