Skip to main content

A Snakemake storage plugin to read and write from Azure Blob Storage

Project description

Snakemake Storage Plugin Azure

Azure Blob Storage plugin for snakemake. For documentation and usage instructions, see the Snakemake Plugin Catalog.

Testing

Testing this plugin locally require the azurite storage emulator to be running locally. This can be setup using the following docker run command:

docker run -p 10000:10000 mcr.microsoft.com/azure-storage/azurite azurite-blob --blobHost 0.0.0.0

Then execute the tests:

poetry run coverage run -m pytest tests/tests.py

Example

The below example Snakefile and command will stream a file, test.txt, containing the text "Hello, World" to the azure blob: https://accountname.blob.core.windows.net/container/test.txt

rule touch:
    output: "test.txt"
    shell:
        "echo 'Hello, World!' > {output}"

Command:

The storage account and container that the output file is streamed to is specified using the default-storage-prefix.

snakemake -j1 \
    --default-storage-provider azure \
    --default-storage-prefix "az://container"
    --storage-azure-account-name accountname \
    --verbose

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

snakemake_storage_plugin_azure-0.4.4.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file snakemake_storage_plugin_azure-0.4.4.tar.gz.

File metadata

File hashes

Hashes for snakemake_storage_plugin_azure-0.4.4.tar.gz
Algorithm Hash digest
SHA256 faacbc2f37e39134065d71b81b205d5f4dbcd71f2c21758277e71293d21cb097
MD5 0536d57cf3cfb91785ec945958bef672
BLAKE2b-256 25de9f8428d0ce7d1d43aa663b42312b4a028a889dfc67b67754115da6cb8a25

See more details on using hashes here.

File details

Details for the file snakemake_storage_plugin_azure-0.4.4-py3-none-any.whl.

File metadata

File hashes

Hashes for snakemake_storage_plugin_azure-0.4.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8f859519abd8098560c28ff3ba3b628735cd9a239246701749cd42e1596940a1
MD5 887c436b6f7b96d33f675c645e944c89
BLAKE2b-256 1ea1ea0e234266c010312bfd286cc002a8c3fc7bc1cd0bf5253575203aa4afcd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page