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://account.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://account/container"
    --storage-azure-endpoint-url https://account.blob.core.windows.net \
    --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.2.0.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for snakemake_storage_plugin_azure-0.2.0.tar.gz
Algorithm Hash digest
SHA256 6eea1bc5ff7ab7f5261981eca929a5576dfb76382f597d86ea4863a3e2bac7e7
MD5 4864320816937273337def00a3495db7
BLAKE2b-256 e8249f5598d02c19b8624ad1536a0f0032085349798d8a348f8d80f0f072e0bb

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for snakemake_storage_plugin_azure-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6a23f683e45282c1a06163272a61375f916159a1008eb863737ab0f2065f23ea
MD5 be6c2d746313d0df46455d0e900c2c11
BLAKE2b-256 c710007bf91134902815ad85d5f9e2403a732a188ba1857f05abfcf7058e752c

See more details on using hashes here.

Provenance

Supported by

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