Prompt Buddy logoPrompt Buddy

cloudflare · Cloudflare Workers Docs

Python Workers

Teaches how to set up, develop, and deploy Cloudflare Workers using Python, including the use of the pywrangler CLI tool, project initialization, and local development workflows.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Python Workers

Teaches how to set up, develop, and deploy Cloudflare Workers using Python, including the use of the pywrangler CLI tool, project initialization, and local development workflows.

When To Use

Use when you need to initialize a Python-based Cloudflare Worker project, manage Python packages via pywrangler, or deploy Python code to the Workers platform.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/python-workers-workflow-guide.mdAn overview of the Python support in Cloudflare Workers, including package compatibility and the foreign function interface.Questions about an overview of the Python support in Cloudflare Workers, including package compatibility and the foreign function int...
examples/python-workers-cloudflare-workers-python-hello-world.textA basic Python implementation of a Cloudflare Worker using the WorkerEntrypoint class to return a Hello World response.Exact payloads, commands, or snippets shown in A basic Python implementation of a Cloudflare Worker using the WorkerEntrypoint class to return a Hello World response.
examples/python-workers-cloudflare-workers-python-init-command.textA text snippet demonstrating the uvx command used to initialize a Python Worker project using pywrangler.Exact payloads, commands, or snippets shown in A text snippet demonstrating the uvx command used to initialize a Python Worker project using pywrangler.
examples/python-workers-cloudflare-workers-python-uv-run-dev-command.textA text snippet demonstrating the command to run a Python Worker locally using uv and pywrangler.Exact payloads, commands, or snippets shown in A text snippet demonstrating the command to run a Python Worker locally using uv and pywrangler.
examples/python-workers-cloudflare-workers-python-deploy-uv-command.textA text snippet demonstrating the uv run pywrangler deploy command used to deploy Python Workers.Exact payloads, commands, or snippets shown in A text snippet demonstrating the uv run pywrangler deploy command used to deploy Python Workers.
examples/python-workers-cloudflare-workers-python-uv-wrangler-init-command.textThe command to initialize a new Python Worker project using uv and pywrangler.Exact payloads, commands, or snippets shown in The command to initialize a new Python Worker project using uv and pywrangler.
examples/python-workers-cloudflare-workers-python-hello-world-2.textA basic hello world implementation for Cloudflare Workers using the Python runtime.Exact payloads, commands, or snippets shown in A basic hello world implementation for Cloudflare Workers using the Python runtime.

What This Skill Covers

  • Cloudflare Workers provides a first-class Python experience, including support for:
  • Main sections: Introduction, The pywrangler CLI tool, Python Worker Templates, Next Up.

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