Skip to main content

appfx-storage

CI Publish PyPI Python versions License: MIT

Python helpers for Azure Storage Blob and Queue operations.

The appfx-storage package exposes the appfx.storage import namespace. It wraps common Azure Blob Storage and Azure Queue Storage tasks with sync and async helper classes, typed package metadata, and release-ready packaging.

Features

  • Blob container and blob upload, download, listing, delete, metadata, and SAS URL helpers.
  • Queue create, send, receive, peek, update, delete, clear, and worker-pattern helpers.
  • Sync and async clients for both blob and queue operations.
  • Azure credential support through connection strings, account names, managed identity, and DefaultAzureCredential.
  • Python 3.12 and 3.13 support.

Installation

python -m pip install appfx-storage

For local development:

python -m pip install -e ".[dev]"

Quickstart

Set the storage account name before running examples. When account_name is provided, the helpers use Azure Identity DefaultAzureCredential, so local development can authenticate with Azure CLI and Azure-hosted apps can use managed identity. Connection strings are supported, but examples intentionally prefer Entra ID authentication.

export AZURE_STORAGE_ACCOUNT_NAME=your-storage-account
az login

Do not commit .env files, connection strings, account keys, or generated SAS URLs.

Async blob usage

import asyncio
import os

from appfx.storage import AsyncStorageBlobHelper


async def main() -> None:
    account_name = os.environ["AZURE_STORAGE_ACCOUNT_NAME"]
    async with AsyncStorageBlobHelper(account_name=account_name) as helper:
        await helper.create_container("documents")
        await helper.upload_blob("documents", "hello.txt", "Hello from appfx-storage")
        blobs = await helper.list_blobs("documents")
        print([blob["name"] for blob in blobs])


asyncio.run(main())

Sync blob usage

import os

from appfx.storage import StorageBlobHelper


helper = StorageBlobHelper(account_name=os.environ["AZURE_STORAGE_ACCOUNT_NAME"])
helper.create_container("documents")
helper.upload_blob("documents", "hello.txt", "Hello from appfx-storage")
print(helper.list_blobs("documents"))

Async queue usage

import asyncio
import os

from appfx.storage import AsyncStorageQueueHelper


async def main() -> None:
    account_name = os.environ["AZURE_STORAGE_ACCOUNT_NAME"]
    async with AsyncStorageQueueHelper(account_name=account_name) as helper:
        await helper.create_queue("jobs")
        result = await helper.send_message("jobs", {"task": "process-file"})
        print(f"Sent message: {result['message_id']}")
        messages = await helper.receive_messages("jobs")
        print([message["message_id"] for message in messages])


asyncio.run(main())

Sync queue usage

import os

from appfx.storage import StorageQueueHelper


helper = StorageQueueHelper(account_name=os.environ["AZURE_STORAGE_ACCOUNT_NAME"])
helper.create_queue("jobs")
result = helper.send_message("jobs", {"task": "process-file"})
print(f"Next visible at: {result['next_visible_on']}")
print([message["message_id"] for message in helper.peek_messages("jobs")])

Tests and quality checks

python -m pip install -e ".[dev]"
python -m ruff check .
python -m ruff format --check .
python -m mypy
python -m pytest --cov
python -m build
python -m twine check dist/*

Live Azure tests and examples require your own Azure Storage account and credentials. Keep live credentials out of source control and CI logs.

Release notes

  • Package name: appfx-storage
  • Import namespace: appfx.storage
  • Repository: https://github.com/Dongbumlee/appfx-storage
  • PyPI publishing is configured for trusted publishing from GitHub Actions on published releases and manual workflow dispatch.

License

MIT License - see LICENSE for details.

Metadata

Release files for appfx-storage 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for appfx-storage 0.1.1
File Size Uploaded Provenance Actions
appfx_storage-0.1.1.tar.gz 37.4 kB With provenance Details for appfx_storage-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for appfx-storage 0.1.1
File Interpreter ABI Platform Actions
appfx_storage-0.1.1-py3-none-any.whl Python 3 none any Details for appfx_storage-0.1.1-py3-none-any.whl

Total release size: 72.9 kB

Release files / appfx_storage-0.1.1.tar.gz

Download URL appfx_storage-0.1.1.tar.gz
Size 37.4 kB
Tags Source
SHA-256 checksum
How to use checksums
4f84c7ac825d65ee67eada6470137def89cb1a0e587d32a49277684d43b9f44f
BLAKE2b-256 checksum
How to use checksums
8e0580b37e65e95c55cf06ce4f21e37db5b0a0ae190b0321d5a09054411a5419
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 27, 2026.

Transparency log

Release files / appfx_storage-0.1.1-py3-none-any.whl

Download URL appfx_storage-0.1.1-py3-none-any.whl
Size 35.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6eb62f5d54f58ad0251ca475758170f544fb33cfc553843621ef54720bb85509
BLAKE2b-256 checksum
How to use checksums
a73af14d46861c8674c2d66f49d3e932030da58bafcea1ddb8ce1e2050ba1684
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 27, 2026.

Transparency log

Security for appfx-storage 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for appfx_storage-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 27, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page