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.
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
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/python-workers-workflow-guide.md | An 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.text | A 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.text | A 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.text | A 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.text | A 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.text | The 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.text | A 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
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - Do not add behavior or configuration that is not present in the attached source files.
Canonical source: https://developers.cloudflare.com/workers/languages/python
