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.

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 will stream a file, test.txt, containing the text "Hello, World" to the azure blob: https://account.blob.core.windows.net/container/tests.txt

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

Command:

snakemake --default-storage-provider azure --storage-azure-endpoint-url https://account.blob.core.windows.net --verbose --default-storage-prefix "az://"

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.1.6.tar.gz (7.2 kB view hashes)

Uploaded Source

Built Distribution

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