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.
- Host: GitHub
- URL: https://github.com/shivabajelan/uploading_file_to_azure_blob_using_python
- Owner: Shivabajelan
- License: mit
- Created: 2024-11-04T06:19:10.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-08T08:31:30.000Z (over 1 year ago)
- Last Synced: 2025-03-05T05:26:45.663Z (about 1 year ago)
- Topics: azure, blob-storage, cloud, python, storage-account, unstructured-data, upload-file
- Homepage:
- Size: 28.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 = "