{
  "name": "dataset-download",
  "title": "Download and unpack a dataset",
  "description": "Download a dataset archive from a URL and unpack it (.tar.gz, .tgz, .tar or .zip) into a destination directory, with an optional bearer token read from a Kubernetes Secret. Unlike download-file, this item also extracts the archive so a downstream step sees the unpacked dataset tree.",
  "category": "AI",
  "tags": [
    "ai",
    "alpine"
  ],
  "latestVersion": "1.0.0",
  "versions": [
    "1.0.0"
  ],
  "parameters": [
    "url",
    "dest-path",
    "token-secret-key",
    "token-secret-name"
  ],
  "images": [
    "alpine@sha256:be2656061b536c1883c4034790e21d0a09c5aaaf51968b89368a3c0371ea2c9a"
  ],
  "url": "https://catalog.dagweave.com/api/v1/items/dataset-download.json",
  "templateUrl": "https://catalog.dagweave.com/api/v1/items/dataset-download/latest/template.yaml",
  "page": "https://catalog.dagweave.com/items/dataset-download/",
  "entrypoint": "fetch",
  "parameterDetails": [
    {
      "name": "url",
      "title": "URL",
      "description": "Absolute URL of the dataset archive to download.",
      "type": "string",
      "required": true,
      "example": "https://example.com/datasets/mnist.tar.gz"
    },
    {
      "name": "dest-path",
      "title": "Destination directory",
      "description": "Directory to download into and unpack the archive under.",
      "type": "string",
      "required": false,
      "default": "/tmp/dataset"
    },
    {
      "name": "token-secret-key",
      "title": "Token secret key",
      "description": "Key within the Secret that holds the bearer token.",
      "type": "string",
      "required": false,
      "default": "token"
    },
    {
      "name": "token-secret-name",
      "title": "Token secret name",
      "description": "Name of the Kubernetes Secret holding an optional bearer token. If the Secret is absent no Authorization header is sent.",
      "type": "string",
      "required": false,
      "default": "dataset-token"
    }
  ],
  "imageDetails": [
    {
      "ref": "alpine@sha256:be2656061b536c1883c4034790e21d0a09c5aaaf51968b89368a3c0371ea2c9a",
      "repository": "alpine",
      "digest": "sha256:be2656061b536c1883c4034790e21d0a09c5aaaf51968b89368a3c0371ea2c9a"
    }
  ],
  "versionDetails": [
    {
      "version": "1.0.0",
      "date": "2026-07-17",
      "notes": "Initial release.",
      "latest": true,
      "installable": true,
      "url": "https://catalog.dagweave.com/api/v1/items/dataset-download/1.0.0.json",
      "templateUrl": "https://catalog.dagweave.com/api/v1/items/dataset-download/1.0.0/template.yaml"
    }
  ],
  "source": "https://github.com/dagweave/catalog/tree/67458f74dbbf913b03177f3cefc69424be85eb1d/catalog/dataset-download",
  "catalogSha": "67458f74dbbf913b03177f3cefc69424be85eb1d"
}
