workers-runtime-sdk
Python SDK for Cloudflare Workers
What it is and what it does
workers-runtime-sdk is a Python SDK that provides runtime bindings and APIs for applications deployed on Cloudflare Workers. It enables developers to write serverless Python code that runs on Cloudflare's edge network, handling HTTP requests and responses through a familiar Python interface.
The SDK is part of a larger monorepo that includes CLI tools and Django integrations for Cloudflare services. It has no external runtime dependencies, making it lightweight to install. The package is actively maintained with recent releases and supports current Python versions (3.11+).
Use it for:
- Build HTTP handlers for serverless functions running on Cloudflare's edge network
- Create request/response middleware for Cloudflare Workers using Python
- Integrate Python applications with Cloudflare services like D1, Durable Objects, and R2
- Deploy Python-based APIs and microservices without managing servers
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Python SDK for building and running applications on Cloudflare Workers, providing runtime bindings and APIs to interact with Cloudflare's serverless platform.
Yes, if you are building Python applications for Cloudflare Workers. The SDK is actively maintained, has no external dependencies, carries a permissive MIT license, and integrates directly with Cloudflare's edge runtime. Install only if you have a Cloudflare Workers deployment target in mind.
Install
workers-runtime-sdk on PyPI
pip
pip install workers-runtime-sdkuv
uv add workers-runtime-sdkpoetry
poetry add workers-runtime-sdkInstalling workers-runtime-sdk
Before you install
Low install friction with no runtime dependencies. Active maintenance—released 2 days ago with a recent commit history and 95 repository stars.
License in practice
MIT license permits commercial and private use with minimal restrictions; suitable for most deployment scenarios.
Quickstart
pip install workers-runtime-sdk
from workers_runtime_sdk import Request, Response
async def handle(request: Request) -> Response:
return Response("Hello from Cloudflare Workers")
Requires Python 3.11 or later; intended for deployment on Cloudflare Workers runtime, not local execution.
Verify before relying
- What specific Cloudflare services (D1, Durable Objects, R2, Access) are supported by this SDK version
- Whether this package is the runtime SDK or the CLI tool (monorepo contains both workers-py and workers-runtime-sdk)
- Performance characteristics and cold-start overhead when deployed to Cloudflare Workers
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.11) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 2 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 86,507/month — #13,856 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: workers_runtime_sdk-1.6.13-py3-none-any.whl
Tags
More Dynamic Content packages
MarkupSafe provides a text object that escapes…
permissive · top 100 on PyPI
Jinja2Jinja2 is a templating engine that renders…
permissive · top 100 on PyPI
soupsieveSoupsieve is a CSS selector library designed to…
permissive · top 100 on PyPI
WerkzeugWerkzeug is a WSGI utility library providing…
permissive · top 1,000 on PyPI
FlaskFlask is a lightweight WSGI web application…
permissive · top 1,000 on PyPI
MakoMako compiles Python-embedded templates into…
permissive · top 1,000 on PyPI
falfal is a serverless Python runtime that…
unclear · top 15,000 on PyPI
azure-functionsProvides Python bindings and decorators for…
permissive · top 5,000 on PyPI
pulumi-cloudflarePulumi provider for Cloudflare that lets you…
permissive · top 15,000 on PyPI
cloudflareProvides a Python client library for the…
permissive · top 5,000 on PyPI
firebase-functionsFirebase Functions Python SDK lets you write…
permissive · top 15,000 on PyPI
runpodRunpod is a Python SDK and API client library…
permissive · top 5,000 on PyPI
flask-cloudflaredStarts a Cloudflare TryCloudflare tunnel for a…
permissive · top 15,000 on PyPI
lithopsLithops is a Python framework for running…
permissive · top 15,000 on PyPI
autokerenAn agentic coding CLI with an interactive…
permissive · top 15,000 on PyPI
modalModal is a Python client library that lets you…
permissive · top 1,000 on PyPI