Prompt Buddy logoPrompt Buddy

cloudflare · Cloudflare Workers Docs

Workers Packages

How to manage and bundle Python dependencies in Cloudflare Workers using the Pywrangler CLI and pyproject.toml configuration.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Workers Packages

How to manage and bundle Python dependencies in Cloudflare Workers using the Pywrangler CLI and pyproject.toml configuration.

When To Use

Use when you need to configure a pyproject.toml file to manage dependencies and deploy a Python Worker with bundled packages using the Pywrangler CLI.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-python-packages-workflow-guide.mdA guide detailing supported Python libraries and the use of Pywrangler for managing packages in Cloudflare Workers.Questions about a guide detailing supported Python libraries and the use of Pywrangler for managing packages in Cloudflare Workers.
examples/workers-python-packages-cloudflare-workers-python-pyproject-toml.textA pyproject.toml configuration file demonstrating how to define project metadata and dependencies for a Cloudflare Workers Python project.Exact payloads, commands, or snippets shown in A pyproject.toml configuration file demonstrating how to define project metadata and dependencies for a Cloudflare Wo...
examples/workers-python-packages-cloudflare-workers-python-packages-uv-run-dev-co.textA text snippet demonstrating the command to run a Cloudflare Workers Python project using uv and pywrangler.Exact payloads, commands, or snippets shown in A text snippet demonstrating the command to run a Cloudflare Workers Python project using uv and pywrangler.
examples/workers-python-packages-cloudflare-workers-python-packages-uv-deploy-com.textA text snippet demonstrating the uv run pywrangler deploy command used to deploy Python packages to Cloudflare Workers.Exact payloads, commands, or snippets shown in A text snippet demonstrating the uv run pywrangler deploy command used to deploy Python packages to Cloudflare Workers.

What This Skill Covers

  • Pywrangler ↗ is a CLI tool for managing packages and Python Workers. It is meant as a wrapper for wrangler that sets up a full environment for you, including...
  • Main sections: Supported Libraries, HTTP Client Libraries.

Workflow

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. Do not add behavior or configuration that is not present in the attached source files.

Canonical source: https://developers.cloudflare.com/workers/languages/python/packages