An open API service indexing awesome lists of open source software.

https://github.com/shivabajelan/uploading_file_to_azure_blob_using_python

In this repository, I will show how we can automate uploading unstructured data such as pdf or png files to Azure Blob using Python.
https://github.com/shivabajelan/uploading_file_to_azure_blob_using_python

azure blob-storage cloud python storage-account unstructured-data upload-file

Last synced: 8 months ago
JSON representation

In this repository, I will show how we can automate uploading unstructured data such as pdf or png files to Azure Blob using Python.

Awesome Lists containing this project

README

          

# uploading_file_to_azure_blob_using_python

# Azure Blob Storage File Uploader
This 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.

## Prerequisites
To use this script, ensure you have:

* An Azure Storage Account with a container created.
* The **azure-storage-blob** package installed.
If not, install it via:

"pip install azure-storage-blob" in the terminal.

## Setup and Usage
**Step 1: Configure Your Azure Storage Credentials**

Before running the script, set up your Azure credentials:

- Account Key
- Account Name
- Connection String
- Container Name
Note: Do not hardcode sensitive information directly in your scripts. Instead, retrieve them securely from environment variables or a secrets manager.

**Step 2: Update the Script with Your Parameters**

In the script, replace the following placeholders with your own Azure credentials:

**python Code:**

storage_account_key = "Your-Account-Key"

storage_account_name = "