{
  "name": "python-script",
  "title": "Run a Python script",
  "description": "Run a Python script you paste in, in a working directory of your choice, after installing any pip packages you list.",
  "category": "CI/CD",
  "tags": [
    "ci-cd",
    "python"
  ],
  "latestVersion": "1.0.0",
  "versions": [
    "1.0.0"
  ],
  "parameters": [
    "script",
    "pip-packages",
    "work-dir"
  ],
  "images": [
    "cgr.dev/chainguard/python@sha256:8a5780972067cfba4592b10e786a889807ed876c1100f89410fd0ed4e398992c"
  ],
  "url": "https://catalog.dagweave.com/api/v1/items/python-script.json",
  "templateUrl": "https://catalog.dagweave.com/api/v1/items/python-script/latest/template.yaml",
  "page": "https://catalog.dagweave.com/items/python-script/",
  "entrypoint": "run",
  "parameterDetails": [
    {
      "name": "script",
      "title": "Script",
      "description": "The Python source to run.",
      "type": "string",
      "required": true,
      "example": "print(\"hello\")"
    },
    {
      "name": "pip-packages",
      "title": "Pip packages",
      "description": "Space-separated pip requirements to install first, pinned to a version. Leave blank to use only the standard library.",
      "type": "string",
      "required": false,
      "default": "",
      "example": "requests==2.34.0"
    },
    {
      "name": "work-dir",
      "title": "Work dir",
      "description": "Directory to run the script in, such as the checked-out repo root.",
      "type": "string",
      "required": false,
      "default": "."
    }
  ],
  "imageDetails": [
    {
      "ref": "cgr.dev/chainguard/python@sha256:8a5780972067cfba4592b10e786a889807ed876c1100f89410fd0ed4e398992c",
      "repository": "cgr.dev/chainguard/python",
      "tag": "latest-dev",
      "digest": "sha256:8a5780972067cfba4592b10e786a889807ed876c1100f89410fd0ed4e398992c"
    }
  ],
  "versionDetails": [
    {
      "version": "1.0.0",
      "date": "2026-10-18",
      "notes": "Initial release.",
      "latest": true,
      "installable": true,
      "url": "https://catalog.dagweave.com/api/v1/items/python-script/1.0.0.json",
      "templateUrl": "https://catalog.dagweave.com/api/v1/items/python-script/1.0.0/template.yaml"
    }
  ],
  "source": "https://github.com/dagweave/catalog/tree/67458f74dbbf913b03177f3cefc69424be85eb1d/catalog/python-script",
  "catalogSha": "67458f74dbbf913b03177f3cefc69424be85eb1d"
}
