def deploy():
  return Edge()
Status: Edge Ready

Deploy Python Globally.
No Servers, No Containers, No Kidding.

Cloudflare runs your Python at 300+ edge locations — with D1, R2, KV, Workers AI, and zero ops. Guides, architecture patterns, and deep dives for developers ready to ditch the Docker stack.

subscribe.sh
$

What We're Building

Production-grade guides for every piece of Cloudflare's Python stack. Here's what's in the pipeline.

workers.py

Ship your first globally deployed Python function — then go deeper into async patterns, bindings, and the FFI bridge.

storage.py

SQLite at global scale with D1. Object storage with zero egress via R2. Key-value at the edge with KV.

inference.py

Run inference on 50+ models via Workers AI — no GPUs to manage. Build RAG pipelines with Vectorize and LangChain.

async_jobs.py

Background jobs, fan-out processing, and scheduled tasks — all without Celery, Redis, or a message broker.

architecture.md

How to wire Workers, D1, R2, Queues, and KV into a real application. Production patterns with auth and observability.

migration.sh

Your Dockerfile, Nginx config, Kubernetes manifests — a concrete migration path from containerized Python to Cloudflare.

sdk_config.py

Programmatic control over the entire platform. Think boto3, but cleaner and type-safe. Real automation and CI/CD.

debug_test.py

Local development with wrangler dev, pdb debugging that actually works, structured logging, and 30-second deployments.

README.md

Built for Developers Who Ship

This isn't a beginner Python tutorial. CloudflarePython.com is for developers who've already built with Django, Flask, or FastAPI — and are ready to drop the infrastructure tax that comes with traditional cloud.

Every guide includes working code you can deploy today, architecture decisions explained with trade-offs, and honest assessments of what Cloudflare does well and where the edges are still rough.

We cover the full stack — from a single Worker function to multi-service architectures with databases, object storage, queues, and AI inference — because real applications don't live in isolation.

$ pip install cloudflare-python
# Coming soon...