Metadata-Version: 2.4
Name: azure-blob-run
Version: 0.1.2
Summary: Run Azure Blob Object
License: MIT
License-File: LICENSE
Author: Allen Chou
Author-email: f1470891079@gmail.com
Requires-Python: >=3.11,<4
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Requires-Dist: azure-storage-blob
Requires-Dist: pydantic (>=2)
Requires-Dist: pydantic-settings
Requires-Dist: str-or-none
Requires-Dist: yarl
Project-URL: Homepage, https://github.com/allen2c/azure-blob-run
Project-URL: PyPI, https://pypi.org/project/azure-blob-run/
Project-URL: Repository, https://github.com/allen2c/azure-blob-run
Description-Content-Type: text/markdown

# Azure-Blob-Run

[![PyPI version](https://img.shields.io/pypi/v/azure-blob-run.svg)](https://pypi.org/project/azure-blob-run/)
[![Python Version](https://img.shields.io/pypi/pyversions/azure-blob-run.svg)](https://pypi.org/project/azure-blob-run/)
[![License](https://img.shields.io/pypi/l/ac-py-template.svg)](https://opensource.org/licenses/MIT)

Execute scripts stored in Azure Blob Storage with local caching. Perfect for distributing compiled executables (Rust/Go/WASM) across services without environment dependencies.

## Installation

```bash
pip install azure-blob-run
```

## Quick Start

```python
import azure_blob_run

# Execute a script from Azure Blob Storage
result = azure_blob_run.run(
    "https://mystorageaccount.blob.core.windows.net/mycontainer/myscript.sh",
    "arg1",
    "arg2",
    "--flag"
)
print(result)
```

The script is automatically downloaded and cached locally on first run.

## Configuration

Set these environment variables:

```bash
export AZURE_BLOB_RUN_CONNECTION_STRING="DefaultEndpointsProtocol=https;..."
export AZURE_BLOB_RUN_CONTAINER_NAME="mycontainer"
export AZURE_BLOB_RUN_CACHE_PATH="./.cache"  # Optional, defaults to ./.cache
```

## License

MIT License

