{"id":20427949,"url":"https://github.com/shivabajelan/uploading_file_to_azure_blob_using_python","last_synced_at":"2026-05-20T10:02:09.443Z","repository":{"id":261007725,"uuid":"882968654","full_name":"Shivabajelan/uploading_file_to_azure_blob_using_python","owner":"Shivabajelan","description":"In this repository, I will show how we can automate uploading unstructured data such as pdf or png files to Azure Blob using Python. ","archived":false,"fork":false,"pushed_at":"2024-11-08T08:31:30.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-05T05:26:45.663Z","etag":null,"topics":["azure","blob-storage","cloud","python","storage-account","unstructured-data","upload-file"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Shivabajelan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-04T06:19:10.000Z","updated_at":"2024-11-08T08:31:33.000Z","dependencies_parsed_at":"2025-03-05T05:36:57.008Z","dependency_job_id":null,"html_url":"https://github.com/Shivabajelan/uploading_file_to_azure_blob_using_python","commit_stats":null,"previous_names":["shivabajelan/uploading_file_to_azure_blob_using_python"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Shivabajelan/uploading_file_to_azure_blob_using_python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shivabajelan%2Fuploading_file_to_azure_blob_using_python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shivabajelan%2Fuploading_file_to_azure_blob_using_python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shivabajelan%2Fuploading_file_to_azure_blob_using_python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shivabajelan%2Fuploading_file_to_azure_blob_using_python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Shivabajelan","download_url":"https://codeload.github.com/Shivabajelan/uploading_file_to_azure_blob_using_python/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shivabajelan%2Fuploading_file_to_azure_blob_using_python/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264795402,"owners_count":23665231,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["azure","blob-storage","cloud","python","storage-account","unstructured-data","upload-file"],"created_at":"2024-11-15T07:23:17.954Z","updated_at":"2026-05-20T10:02:04.410Z","avatar_url":"https://github.com/Shivabajelan.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# uploading_file_to_azure_blob_using_python\n\n# Azure Blob Storage File Uploader\nThis Python script automates the upload of unstructured data, such as PDF or PNG files, to Azure Blob Storage. With a few parameters and a file path, you can securely upload files to your Azure storage container using Python.\n\n## Prerequisites\nTo use this script, ensure you have:\n\n* An Azure Storage Account with a container created.\n* The **azure-storage-blob** package installed.\n If not, install it via:\n\n\"pip install azure-storage-blob\" in the terminal.\n\n## Setup and Usage\n**Step 1: Configure Your Azure Storage Credentials**\n\nBefore running the script, set up your Azure credentials:\n\n- Account Key\n- Account Name\n- Connection String\n- Container Name\nNote: Do not hardcode sensitive information directly in your scripts. Instead, retrieve them securely from environment variables or a secrets manager.\n\n**Step 2: Update the Script with Your Parameters**\n\nIn the script, replace the following placeholders with your own Azure credentials:\n\n**python Code:**\n\nstorage_account_key = \"Your-Account-Key\"\n\nstorage_account_name = \"\u003cour-Account-Name\"\n\nconnection_string = \"Your-Connection-String\"\n\ncontainer_name = \"Your-Container-Name\"\n\n**Step 3: Upload a File**\n\nTo upload a file, call the UploadToBlobStorage function and provide:\n\n* file_path: Local path of the file you want to upload.\n* file_name: Desired path and name of the file in Azure Blob Storage.\n\n**Here is the Python code. Replace the Azure Storage Credentials, specify your desired file_path, file_name, and easily upload your data on the strage in Azure.**\n![image](https://github.com/user-attachments/assets/85695f24-1cd7-4c06-aa65-726bd2c02778)\n\n## This is what I did in the block of code in summary:\n* Define Azure Storage credentials\n\n* Define function to upload files to Azure Blob Storage\n\n\n * Call the function with your file path and desired blob name\n\nPlease reach out if you would like to discuss the details of this process more in depth!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshivabajelan%2Fuploading_file_to_azure_blob_using_python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshivabajelan%2Fuploading_file_to_azure_blob_using_python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshivabajelan%2Fuploading_file_to_azure_blob_using_python/lists"}