DevOps & Cloud

azure-storage-blob

Microsoft's version of an infinite filing cabinet in the cloud, with a Python key that opens every drawer.

Install it: pip install azure-storage-blob

What does it do?

This library lets Python code create, read, and delete files stored in Azure’s Blob Storage — Microsoft’s name for its bottomless cloud storage, where blob just means any chunk of raw data, from a spreadsheet to a movie file. It translates ordinary Python commands into requests Azure’s storage servers understand, handling authentication tokens, retry logic, and the fiddly details of streaming very large files in pieces. A developer can write a program that backs up a database or serves images to a website without ever knowing which physical machine actually holds the bytes.

See it in action

This connects to a Microsoft Azure storage account and uploads a file into a named storage container.

from azure.storage.blob import BlobServiceClient

connection_string = "your_connection_string_here"
service = BlobServiceClient.from_connection_string(connection_string)
container = service.get_container_client("my-container")

with open("path/to/file.jpg", "rb") as data:
    container.upload_blob(name="file.jpg", data=data)

print("Upload complete")

Why would a non-developer care?

If a company runs on Microsoft’s ecosystem — Office 365, Azure, Windows servers — this is very likely quietly holding uploaded documents, exported reports, or app data behind the scenes. It’s part of why saving to the cloud just works instead of requiring an IT department to babysit physical disks.

Real-world examples

Enterprises that standardized on Microsoft’s cloud, from healthcare systems to banks, rely on Blob Storage to hold everything from scanned records to transaction logs, and this library is how their Python services talk to it. Without it, engineers would be manually crafting HTTP requests and re-implementing retry logic this package already gets right. A single dropped upload of financial data is exactly the kind of failure it’s built to prevent.

Who uses it

Developers building applications on Microsoft Azure who need durable, large-scale storage for files, backups, or media.

How it compares to alternatives

It plays the same role as google-cloud-storage on Google’s platform and boto3 on Amazon’s — all three exist because no two cloud providers agree on how storage should work under the hood. Teams pick based on which cloud their company already pays for, not technical superiority.

Fun fact

Azure originally shipped in 2010 under the codename Red Dog, and blob storage was one of its very first services.

New to Python and want to actually try libraries like this yourself?

Find a beginner-friendly course

Related libraries