conv.

All stories
TechQuiet 42h · day 3

Cloudflare takes Python Workers out of preview into general availability

Two years after its beta launch, Cloudflare says Python is now a first-class, fully supported language on its Workers platform.

What to know

  • Cloudflare's Python Workers, in preview since 2024, are now generally available and production-ready.
  • New native support lets Python code use Cloudflare bindings (R2, D1, Queues, Workers AI, etc.) without hand-written JavaScript glue code.
  • Frameworks like FastAPI, Django, and Flask can now run directly via new workers.asgi/workers.wsgi packages, with Workers itself acting as the web server.
  • The system runs Python compiled to WebAssembly via Pyodide inside Cloudflare's V8-based workerd runtime, which brings documented limitations such as restricted multiprocessing support.

Cloudflare Platform vendorGyeongjae Choi Cloudflare engineer, blog co-authorDominik Picheta Cloudflare engineer, blog co-authorHood Chatham Cloudflare engineer, blog co-authorSimon Willison Independent developer/commentatormttaggart Mastodon user (infosec.exchange)

Cloudflare takes Python Workers out of preview into general availability
blog.cloudflare.com

How it unfolded 3 developments, newest first · click a bar or a number to jump articlesposts

Peak 5 pieces in one hour at Sep 21, 8 AM; 18 pieces over 3 days (5 articles · 4 posts · 9 comments) Sep 21, 8 AM — 5 pieces · 4 articles · 1 post — Newswires 3, Hacker News 1, Mastodon 1Sep 21, 9 AM — quietSep 21, 10 AM — quietSep 21, 11 AM — 4 pieces · 2 posts · 2 comments — Hacker News 2, Mastodon 2Sep 21, 12 PM — quietSep 21, 1 PM — 1 piece · 1 comment — Hacker News 1Sep 21, 2 PM — 1 piece · 1 comment — Hacker News 1Sep 21, 3 PM — 1 piece · 1 comment — Hacker News 1Sep 21, 4 PM — quietSep 21, 5 PM — 2 pieces · 1 article · 1 comment — Hacker News 1, Newswires 1Sep 21, 6 PM — 1 piece · 1 comment — Hacker News 1Sep 21, 7 PM — quietSep 21, 8 PM — 1 piece · 1 comment — Hacker News 1Sep 21, 9 PM — quietSep 21, 10 PM — quietSep 21, 11 PM — 1 piece · 1 comment — Hacker News 1Sep 22, 12 AM — quietSep 22, 1 AM — quietSep 22, 2 AM — quietSep 22, 3 AM — quietSep 22, 4 AM — quietSep 22, 5 AM — quietSep 22, 6 AM — quietSep 22, 7 AM — quietSep 22, 8 AM — quietSep 22, 9 AM — 1 piece · 1 post — Mastodon 1Sep 22, 10 AM — quietSep 22, 11 AM — quietSep 22, 12 PM — quietSep 22, 1 PM — quietSep 22, 2 PM — quietSep 22, 3 PM — quietSep 22, 4 PM — quietSep 22, 5 PM — quietSep 22, 6 PM — quietSep 22, 7 PM — quietSep 22, 8 PM — quietSep 22, 9 PM — quietSep 22, 10 PM — quietSep 22, 11 PM — quietYesterday, 12 AM — quietYesterday, 1 AM — quietYesterday, 2 AM — quietYesterday, 3 AM — quietYesterday, 4 AM — quietYesterday, 5 AM — quietYesterday, 6 AM — quietYesterday, 7 AM — quietYesterday, 8 AM — quietYesterday, 9 AM — quietYesterday, 10 AM — quietYesterday, 11 AM — quietYesterday, 12 PM — quietYesterday, 1 PM — quietYesterday, 2 PM — quietYesterday, 3 PM — quietYesterday, 4 PM — quietYesterday, 5 PM — quietYesterday, 6 PM — quietYesterday, 7 PM — quietYesterday, 8 PM — quietYesterday, 9 PM — quietYesterday, 10 PM — quietYesterday, 11 PM — quietToday, 12 AM — quietToday, 1 AM — quietToday, 2 AM — quietToday, 3 AM — quiet 123
Sep 22yesterdaynow · 4:44 AM ET
  1. 3

    Simon Willison highlights the Pyodide/WebAssembly architecture and its limits

    Developer Simon Willison wrote up how Python Workers run Python compiled to WebAssembly via Pyodide inside Cloudflare's V8-based workerd runtime, noting this brings some limitations including around multiprocessing.

    “This comes with some limitations, documented here - most notably both multiprocessing…”
    — Simon Willison
    1. first by Simon Willison, 2d ago

    • Great work from the Cloudflare team!I was very excited when they first launched Python Workers two years ago. Even though we have competing products at Wasmer, I think Cloudflare work is always exciting and inspiring.I went back to the feedback I posted in the original launch thread [1]. It's great to see that they have made meaningful progress…

      syrusakbaryHacker News2d agoview on Hacker News ↗
    2 more of the top 3 · 6 posts in this stretch
    • > we contributed upstream to ensure these HTTP clients can route requests directly through the JavaScript `fetch` API in WebAssembly environmentsSome context from an urllib3 maintainer:urllib3 received and merged large contributions adding Pyodide/Emscripten support a few years ago, and later JSPI support, which is what made this work for…

      illia-vHacker News2d agoview on Hacker News ↗
    • I think this showcases the other issue I commented a few years ago [1].Pyodide and Cloudflare don't use the real network stack for http requests (they patched the functions to use JS `fetch` underneath). They also patched Python's async event loop to use JS event loop.This has a major downside: incompatibility issues. JS event loop is preemptive…

      syrusakbaryHacker News2d agoview on Hacker News ↗
    all of them →
  2. 2

    Mastodon user criticizes the expansion as loss of user agency

    A Mastodon user responded to the announcement with a broader critical comment about Cloudflare's platform growth, framing it as part of an unsustainable trend rather than commenting on the Python feature specifically.

    “I'm too tired for even the "What can possibly go wrong?" of it all. Every day they build new ways to take your agency from you. Every day they add to the house of cards that can only end one way.”
    — @mttaggart@infosec.exchange
    • mttaggart@infosec.exchange

      I'm too tired for even the "What can possibly go wrong?" of it all. Every day they build new ways to take your agency from you. Every day they add to the house of cards that can only end one way. https:// blog.cloudflare.com/python-wor kers-ga/

      mttaggart@infosec.exchangeMastodon2d ago11▲view on Mastodon ↗
    2 more of the top 3 · 4 posts in this stretch
    • Pyodide is such a cool piece of the Python ecosystem. I hope Cloudflare consider throwing some money their direction:

      simonwHacker News2d agoview on Hacker News ↗
    • This is the tech at Cloudflare of course, but I swear that my first interpretation of the title was "We have replaced all our python coders with AI and they (the coders) are out and generally available" :-)

      dsignHacker News2d agoview on Hacker News ↗
    all of them →
  3. 1

    Cloudflare declares Python Workers generally available

    Cloudflare announced GA status for Python Workers, adding native support for Developer Platform bindings (R2, D1, Hyperdrive, Durable Objects, Queues, Workflows, Workers AI) without manual JavaScript type conversion, and built-in support for running FastAPI, Django, and Flask via new workers.asgi and workers.wsgi packages.

    “Python is now a first-class, fully supported language on the Cloudflare Developer Platform.”
    — Cloudflare
    1. 3 outlets first by HN Best, 2d ago · also HN Frontpage, Cloudflare Blog · read ↗

  4. background

    Cloudflare launches Python Workers in preview — Cloudflare introduced Python Workers, running a Wasm-compiled Python interpreter (Pyodide) inside its Workers runtime, aiming to make Python as easy to deploy as TypeScript on its platform.

What people are saying 4 voices from 1 site · best of 10 · verbatim