Skip to main content

snakemake-storage-plugin-acadfetch

A Snakemake storage plugin that fetches file URLs through acadfetch.

Snakemake's own http plugin issues one flat GET per file, so a link that drops at 80% costs the whole transfer. This one routes every request through acadfetch's client: one process-wide token bucket, Retry-After respected, 5xx and WAF block pages retried, and a .part resumed with Range/If-Range instead of restarted.

Install

Python 3.11 or newer: on 3.10, pip resolves Snakemake 7.x, which predates the storage plugin interface entirely.

pip install "git+https://github.com/young-ski/acadfetch.git#subdirectory=snakemake-storage-plugin-acadfetch"

The intended PyPI name is snakemake-storage-plugin-acadfetch; until that release exists, install from the checkout as above.

Use

A query is a file URL — exactly the form acadfetch fetch <target> -w - prints for every file of a record:

rule fetch:
    input:
        storage.acadfetch("https://zenodo.org/records/123456/files/raw.tar.gz")
    output:
        "raw.tar.gz"
    shell:
        "cp {input} {output}"

Get those URLs from a DOI or a record id without hand-copying anything:

acadfetch fetch 10.5281/zenodo.123456 -w - | head -1

Settings

Each appears on the Snakemake CLI as --storage-acadfetch-<name>:

Setting Meaning
rate requests per second, global (default 2)
retries retries per transfer on 5xx/429/network errors (default 4)
timeout per-request timeout in seconds (default 60)
header extra request header as Name: value, for a restricted record
snakemake --storage-acadfetch-rate 1 --storage-acadfetch-header "Authorization: Bearer $TOKEN"

What it does not do

A query is one file. Listing a record's files is what -w/--urls is for; doing it here would add a network round trip per rule and hide which file the rule depends on.

Metadata

Release files for snakemake-storage-plugin-acadfetch 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for snakemake-storage-plugin-acadfetch 0.1.0
File Size Uploaded Provenance Actions
snakemake_storage_plugin_acadfetch-0.1.0.tar.gz 8.7 kB With provenance Details for snakemake_storage_plugin_acadfetch-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for snakemake-storage-plugin-acadfetch 0.1.0
File Interpreter ABI Platform Actions
snakemake_storage_plugin_acadfetch-0.1.0-py3-none-any.whl Python 3 none any Details for snakemake_storage_plugin_acadfetch-0.1.0-py3-none-any.whl

Total release size: 15.5 kB

Release files / snakemake_storage_plugin_acadfetch-0.1.0.tar.gz

Download URL snakemake_storage_plugin_acadfetch-0.1.0.tar.gz
Size 8.7 kB
Tags Source
SHA-256 checksum
How to use checksums
2c43a829eb8beb4ef2aa430dc9c059667afa40c914d3d892afec24d66ab6e3b0
BLAKE2b-256 checksum
How to use checksums
4c600dd49810c007914b2600f1d6adcc3f6fd814e01b248405c5f14353533fb6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

Release files / snakemake_storage_plugin_acadfetch-0.1.0-py3-none-any.whl

Download URL snakemake_storage_plugin_acadfetch-0.1.0-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
213eac17d7b9c2381a035074e3d3eecff66b18aca61ea4fe392060755d875108
BLAKE2b-256 checksum
How to use checksums
60ee26241b5c3fab0b04f4f6ef1eb0326f01a2cef6e45830d44aef2360e0664e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

Security for snakemake-storage-plugin-acadfetch 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for snakemake_storage_plugin_acadfetch-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page