skillfed

workers-runtime-sdk

Python SDK for Cloudflare Workers

workers-runtime-sdk v1.6.13 86.5K downloads/30d#13,856 on PyPI95
Permissive license Active released

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-sdk

uv

uv add workers-runtime-sdk

poetry

poetry add workers-runtime-sdk

Installing 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

License :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3

Tags

cloudflare workers pythonserverless python sdkcloudflare runtime bindingspython workers frameworkcloudflare edge computing
serverlesscloudflareedge-computing

More Dynamic Content packages

Further reading