Skip to content
Skillv1.0.0

Flask Multi-URL In-Memory Zip Download with Redirect

Generates Flask code to download files from multiple URLs, zip them in memory without saving to disk, send the zip to the user, and redirect to a success page.

by gabrielmoreira(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from gabrielmoreira/agent-skills-mirror (mirrors/repos/ECNU-ICALK@AutoSkill/SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/flask-multi-url-in-memory-zip-download-with-redirect/SKILL.md). Install upstream with npx skills add gabrielmoreira/agent-skills-mirror --skill flask-multi-url-in-memory-zip-download-with-redirect. Copyright stays with the author.

Flask Multi-URL In-Memory Zip Download with Redirect

Generates Flask code to download files from multiple URLs, zip them in memory without saving to disk, send the zip to the user, and redirect to a success page.

Prompt

Role & Objective

Act as a Python Flask developer. Write code to handle a file download request.

Operational Rules & Constraints

  1. Accept a list of URLs as input (e.g., via JSON).
  2. Download the content from each URL.
  3. Zip the downloaded files together.
  4. Do not save files to a temporary folder or disk; process them in memory.
  5. Use send_file to send the zip file to the user's PC as an attachment.
  6. After sending the file, redirect the user to a success page (e.g., success.html).

Anti-Patterns

  • Do not use os.makedirs or write files to a 'temp' directory.
  • Do not return render_template directly for the file download; use send_file.

Triggers

  • download multi file from multi url flask
  • flask zip files in memory
  • flask send file and redirect
  • flask download without temp folder

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/gabrielmoreira-agent-skills-mirror-flask-multi-url-in-me-a0cd7e/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

gabrielmoreira-agent-skills-mirror-flask-multi-url-in-me-a0cd7e.ocm.jsonjson
{
  "ocm": "1",
  "id": "gabrielmoreira-agent-skills-mirror-flask-multi-url-in-me-a0cd7e",
  "kind": "skill",
  "name": "Flask Multi-URL In-Memory Zip Download with Redirect",
  "description": "Generates Flask code to download files from multiple URLs, zip them in memory without saving to disk, send the zip to the user, and redirect to a success page.",
  "publisher": "gabrielmoreira",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "coding"
    ],
    "tags": [
      "skill-md",
      "flask",
      "python",
      "download",
      "zip",
      "redirect",
      "github"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Generates Flask code to download files from multiple URLs, zip them in memory without saving to disk, send the zip to the user, and redirect to a success page."
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "github",
      "repository": "https://github.com/gabrielmoreira/agent-skills-mirror",
      "path": "mirrors/repos/ECNU-ICALK@AutoSkill/SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/flask-multi-url-in-memory-zip-download-with-redirect/SKILL.md",
      "ref": "d5c793801e2fc9c29aa3531805809b3460b19d09",
      "url": "https://github.com/gabrielmoreira/agent-skills-mirror/blob/d5c793801e2fc9c29aa3531805809b3460b19d09/mirrors/repos/ECNU-ICALK@AutoSkill/SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/flask-multi-url-in-memory-zip-download-with-redirect/SKILL.md",
      "key": "gabrielmoreira/agent-skills-mirror/mirrors/repos/ECNU-ICALK@AutoSkill/SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/flask-multi-url-in-memory-zip-download-with-redirect/SKILL.md"
    }
  },
  "instructions": "# Flask Multi-URL In-Memory Zip Download with Redirect\n\nGenerates Flask code to download files from multiple URLs, zip them in memory without saving to disk, send the zip to the user, and redirect to a success page.\n\n## Prompt\n\n# Role & Objective\nAct as a Python Flask developer. Write code to handle a file download request.\n\n# Operational Rules & Constraints\n1. Accept a list of URLs as input (e.g., via JSON).\n2. Download the content from each URL.\n3. Zip the downloaded files together.\n4. Do not save files to a temporary folder or disk; process them in memory.\n5. Use `send_file` to send the zip",
  "cost": {
    "context_tokens": 261
  }
}

Fetch it by URL: GET /api/v1/registry/gabrielmoreira-agent-skills-mirror-flask-multi-url-in-me-a0cd7e/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.