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 details)

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for snakemake_storage_plugin_azure-0.1.6.tar.gz
Algorithm Hash digest
SHA256 549e54daf878be652ac5a301b1aa2b4d63d48e21a3a1abe33c4c7b4da79cf8d6
MD5 71db80d5bb07c26b1cb21e0b5a42c80d
BLAKE2b-256 682246c49a623577dee8b433ec88e625677661a97281dd9a83cf0df74083dbd6

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for snakemake_storage_plugin_azure-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 642cd10809f26488dc5f443519a990e8ff3cc6b1ed0b0e425277a5a6678d0b2f
MD5 22c9e1b6a1a4ea037652248117dabd60
BLAKE2b-256 cab1ffae673b214c0354c53b294ea259b5f668bbaa726827557e6f0abe5fc925

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